/* ========================= */
/* AUTH PAGES - FIXED SPACING WITH HEADER */
/* ========================= */

/* Auth Main Container - FIXED HEADER SPACING */
.auth-main {
    min-height: 100vh;
    padding-top: 120px; /* INCREASED from 80px - lebih banyak space dari header */
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 40px; /* Increased bottom padding */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated background */
.auth-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    opacity: 0.03;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Auth Container - Better positioning */
.auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-primary);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-light);
    /* Add margin top for extra spacing */
    margin-top: 20px;
}

/* Form Section - Better spacing */
.auth-form-section {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-japanese);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

/* Form Styles */
.auth-form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Modern Input Design */
.input-wrapper {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.08);
    transform: translateY(-1px);
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1rem;
    z-index: 2;
    transition: color 0.3s ease;
    pointer-events: none;
}

.input-wrapper:focus-within i {
    color: var(--secondary-color);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-primary);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Password Toggle - FIXED POSITIONING */
.input-wrapper.has-toggle {
    position: relative;
}

.input-wrapper.has-toggle input {
    padding-right: 58px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.password-toggle:hover {
    color: var(--secondary-color);
    background-color: rgba(67, 97, 238, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.password-toggle i {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    pointer-events: none;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    gap: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
    overflow: hidden;
}

.phone-input-wrapper:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.08);
    transform: translateY(-1px);
}

.country-select-wrapper {
    flex: 0 0 140px;
    border-right: 1px solid var(--border-light);
}

.country-select {
    width: 100%;
    padding: 16px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    padding-right: 28px;
}

.phone-number-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.phone-number-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    z-index: 2;
    font-size: 1rem;
    pointer-events: none;
}

.phone-number-wrapper input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 1rem;
}

/* Login Options */
.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

/* Checkbox Styles - COMPLETELY REWORKED FOR VISIBILITY */
.checkbox-group {
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    gap: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

/* New approach: Larger checkmark with better visibility */
.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-secondary);
    border-radius: 4px;
    background: var(--bg-primary);
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove the ::after approach and use a simpler method */
.checkmark::before {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
    color: transparent;
    transition: all 0.3s ease;
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: scale(1.02);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::before {
    color: var(--white);
}

/* Alternative with FontAwesome icon - more reliable */
.checkmark.fa-style {
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: transparent;
    border: 2px solid var(--text-secondary);
    background: var(--bg-primary);
}

.checkmark.fa-style::before {
    content: '\f00c'; /* fa-check */
}

.checkbox-label input[type="checkbox"]:checked + .checkmark.fa-style {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Simple SVG approach - most reliable */
.checkmark.svg-style {
    background-color: var(--bg-primary);
    border: 2px solid var(--text-secondary);
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark.svg-style {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

/* High contrast version for better visibility */
.checkmark.high-contrast {
    width: 24px;
    height: 24px;
    border: 3px solid var(--text-primary);
    background: var(--white);
    border-radius: 3px;
}

.checkmark.high-contrast::before {
    content: '✓';
    font-size: 16px;
    font-weight: 900;
    color: transparent;
    line-height: 1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark.high-contrast {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark.high-contrast::before {
    color: var(--white);
}

.checkbox-text {
    flex: 1;
}

.checkbox-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.checkbox-text a:hover {
    text-decoration: underline;
}

/* Dark mode specific fixes */
[data-theme="dark"] .checkmark {
    border-color: var(--border-light);
    background: var(--bg-secondary);
}

[data-theme="dark"] .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

[data-theme="dark"] .checkmark.high-contrast {
    border-color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Hover and focus states */
.checkbox-label:hover .checkmark {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* For debugging - temporary visible border */
.checkmark.debug {
    border: 3px solid red !important;
    background: yellow !important;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark.debug::before {
    color: black !important;
}

/* Forgot Password */
.forgot-password a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-auth:hover::before {
    left: 100%;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 77, 109, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-auth:hover .btn-icon {
    transform: translateX(4px);
}

/* Guest Login */
.guest-login {
    margin: 25px 0;
    padding: 25px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.guest-login-header span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

.btn-guest {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    color: var(--text-primary);
    border: 2px dashed var(--border-medium);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-guest:hover {
    background: var(--bg-secondary);
    border-style: solid;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-switch a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.auth-switch a:hover {
    color: var(--primary-color);
}

/* Image Section - Right Side */
.auth-image-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-image-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 35px;
    color: var(--white);
}

.auth-image-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-image-content img {
    width: 80%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

/* Auth Image Overlay - Better feature list positioning */
.auth-image-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center all content */
    text-align: center;
}

.auth-image-overlay h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
    font-family: var(--font-japanese);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.auth-image-overlay p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
}

/* Updated feature list with better spacing */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Consistent spacing */
    width: 100%;
}

.feature-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 1rem;
    opacity: 0.9;
    width: 100%;
    max-width: 300px; /* Optimal width for readability */
    padding: 0 10px; /* Small padding for better visual balance */
}

.feature-list i {
    margin-right: 15px; /* Slightly increased spacing */
    color: var(--yuzu);
    font-size: 1.1rem; /* Slightly smaller for better balance */
    width: 18px; /* Fixed width for alignment */
    text-align: center;
    flex-shrink: 0;
}

.feature-list span {
    flex: 1;
    text-align: left; /* Keep text left-aligned for readability */
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.5s ease;
}

.strength-fill.weak {
    width: 25%;
    background: linear-gradient(90deg, #ff4757, #ff6b7d);
}

.strength-fill.medium {
    width: 75%;
    background: linear-gradient(90deg, #ffa502, #ff6348);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(90deg, #2ed573, #17c0eb);
}

.strength-text {
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 60px;
}

/* Custom country input */
.custom-country-input {
    width: 100%;
    padding: 16px 12px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    outline: none;
    font-size: 1rem;
}

/* Auth Footer */
.auth-footer {
    padding: 30px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.footer-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.footer-auth .footer-logo h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.footer-links-simple {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links-simple a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links-simple a:hover {
    color: var(--text-primary);
}

.footer-copyright p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ========================= */
/* EMAIL VERIFICATION NOTIFICATION STYLES */
/* ========================= */

/* Registration Success Message - Enhanced */
.registration-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.registration-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="success-grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23success-grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.registration-success .message-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    text-align: center;
}

/* Success Icon Enhancement */
.success-icon-wrapper {
    margin-bottom: 25px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.success-icon-wrapper .message-icon {
    font-size: 4rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    padding: 25px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Success Title */
.success-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-japanese);
}

/* Success Details */
.success-details {
    text-align: center;
}

.success-details p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.95);
}

/* Email Verification Notice - Enhanced */
.verification-notice {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    margin: 25px 0;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.verification-notice i {
    font-size: 2rem;
    color: var(--yuzu);
    margin-right: 15px;
    vertical-align: top;
    margin-top: 5px;
    animation: emailBounce 2s ease-in-out infinite;
}

@keyframes emailBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.verification-notice > div {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.verification-notice p {
    margin: 8px 0;
    font-size: 1rem;
}

.verification-notice p:first-child {
    font-weight: 600;
    font-size: 1.1rem;
}

.email-address {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1rem;
    color: var(--yuzu);
    border: 1px solid rgba(255, 255, 255, 0.3);
    word-break: break-all;
}

.verification-instruction {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

/* Next Steps Section - Enhanced */
.next-steps {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.next-steps h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-steps h4::before {
    content: '📋';
    font-size: 1.3rem;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    padding: 8px 0;
}

.next-steps li i {
    margin-right: 12px;
    color: var(--yuzu);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Quick Actions Section */
.quick-actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn-register-another {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-register-another:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Login Redirect Option */
.login-redirect-option {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-redirect-option.show {
    opacity: 1;
    transform: translateY(0);
}

.redirect-content {
    text-align: center;
}

.redirect-content p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.btn-go-login {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 77, 109, 0.4);
}

.btn-go-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 77, 109, 0.5);
    text-decoration: none;
    color: var(--white);
}

/* Close Button Enhancement */
.registration-success .message-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.registration-success .message-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Responsive Design for Email Verification */
@media screen and (max-width: 768px) {
    .registration-success .message-content {
        padding: 30px 25px;
    }
    
    .success-title {
        font-size: 1.8rem;
    }
    
    .success-icon-wrapper .message-icon {
        font-size: 3rem;
        padding: 20px;
    }
    
    .verification-notice {
        padding: 20px;
        margin: 20px 0;
    }
    
    .verification-notice > div {
        flex-direction: column;
        gap: 10px;
    }
    
    .verification-notice i {
        align-self: center;
        margin: 0 0 10px 0;
    }
    
    .email-address {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
    
    .next-steps {
        padding: 15px;
    }
    
    .next-steps li {
        font-size: 0.95rem;
    }
    
    .quick-actions {
        margin-top: 25px;
    }
    
    .btn-register-another,
    .btn-go-login {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}

@media screen and (max-width: 576px) {
    .registration-success .message-content {
        padding: 25px 20px;
    }
    
    .success-title {
        font-size: 1.6rem;
    }
    
    .verification-notice {
        padding: 15px;
    }
    
    .email-address {
        font-size: 0.85rem;
    }
    
    .next-steps li {
        font-size: 0.9rem;
    }
}

/* Animation for the entire success message */
.registration-success {
    animation: slideInFromTop 0.8s ease-out;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Special effects for important elements */
.verification-notice {
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.1);
    }
}

/* Success message variants for different states */
.registration-success.compact {
    padding: 20px;
}

.registration-success.compact .message-content {
    padding: 25px;
}

.registration-success.compact .success-title {
    font-size: 1.8rem;
}

.registration-success.compact .success-icon-wrapper .message-icon {
    font-size: 3rem;
    padding: 20px;
}

/* ========================= */
/* RESPONSIVE DESIGN */
/* ========================= */

@media screen and (max-width: 1200px) {
    .auth-main {
        padding-top: 110px; /* Slightly reduced for smaller screens */
        padding-left: 25px;
        padding-right: 25px;
    }
    
    .auth-container {
        max-width: 950px;
        margin-top: 15px;
    }
}

@media screen and (max-width: 991px) {
    .auth-main {
        padding-top: 100px; /* Adjust for mobile */
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        height: auto;
        max-width: 500px;
        margin: 20px;
        margin-top: 0; /* Reset margin-top for mobile */
    }
    
    .auth-image-section {
        order: -1;
        min-height: 250px;
    }
    
    .auth-form-section {
        padding: 40px 35px;
    }
    
    .auth-image-content {
        padding: 30px;
    }
    
    .auth-image-content img {
        width: 60%;
        max-width: 200px;
        margin-bottom: 20px;
    }
    
    .auth-image-overlay h2 {
        font-size: 1.5rem;
    }
    
    .auth-image-overlay p {
        font-size: 1rem;
    }
    
    .feature-list {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .auth-main {
        padding-top: 120px; /* Increased for mobile header */
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 30px;
    }
    
    .auth-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .auth-form-section {
        padding: 30px 25px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 22px;
    }
    
    .login-options {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .phone-input-wrapper {
        flex-direction: column;
        gap: 0;
    }
    
    .phone-number-wrapper {
        border-left: none;
        border-top: 1px solid var(--border-light);
    }
    
    .country-select-wrapper {
        flex: none;
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
}

@media screen and (max-width: 576px) {
    .auth-main {
        padding-top: 130px; /* Even more space for smaller mobile headers */
    }
    
    .auth-form-section {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.6rem;
    }
    
    .input-wrapper input {
        padding: 14px 18px 14px 45px;
    }
    
    .input-wrapper.has-toggle input {
        padding-right: 52px;
    }
    
    .btn-auth {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .auth-container {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .country-select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Error and Success States */
.field-error {
    border-color: #ef4444 !important;
}

.form-group.error .input-wrapper {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 8px;
    animation: slideIn 0.3s ease;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #10b981;
    font-size: 0.8rem;
    margin-top: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .auth-main::before {
        display: none;
    }
    
    .auth-image-section {
        display: none;
    }
    
    .auth-container {
        grid-template-columns: 1fr;
        box-shadow: none;
        border: 2px solid black;
    }
}