/* ================================================================
   EMUA AUTH 2026 — Login / Register / ForgotPassword
   ================================================================ */

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.auth-section {
    padding: 48px 20px;
    background: linear-gradient(135deg, #f8faff 0%, #f1f4fb 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
}

.auth-page {
    width: min(1080px, 100%);
    min-height: 620px;
    margin: auto;
    display: grid;
    grid-template-columns: 42% 58%;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(15,23,42,0.14), 0 4px 24px rgba(15,23,42,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}


/* ── LEFT BRAND PANEL ─────────────────────────────────────────────── */
.auth-brand {
    background: linear-gradient(160deg, #1e3a8a 0%, #1d4ed8 45%, #7c3aed 100%);
    color: #ffffff;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.auth-brand::after {
    content: "";
    position: absolute;
    bottom: -80px; left: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.brand-logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo::before {
    content: '⚡';
    font-size: 24px;
}

.auth-brand p {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.auth-brand span {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    display: block;
}

.auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.auth-benefits i {
    font-size: 16px;
    color: #93c5fd;
    flex-shrink: 0;
}


/* ── RIGHT FORM AREA ─────────────────────────────────────────────── */
.auth-form-area {
    padding: 52px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

.auth-form {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-form h1 {
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 28px;
    text-align: center;
}


/* ── SOCIAL BUTTONS ──────────────────────────────────────────────── */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff !important;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
    box-sizing: border-box !important;
}

.social-auth-btn:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.google-icon svg { width: 18px; height: 18px; }

.facebook-icon {
    color: #1877f2;
    font-size: 16px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}


/* ── FORM FIELDS ─────────────────────────────────────────────────── */
.field-group { margin-bottom: 16px; }

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 7px;
}

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
    transition: color 0.15s ease;
}

.auth-field input {
    width: 100% !important;
    padding: 11px 40px 11px 40px !important;
    font-size: 14px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    outline: none !important;
    background-color: #ffffff !important;
    color: #0f172a !important;
    height: 46px !important;
    box-sizing: border-box !important;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.auth-field input::placeholder { color: #cbd5e1; }

.auth-field input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12) !important;
}

.auth-field input:focus ~ .field-icon,
.auth-field:focus-within .field-icon { color: #2563eb; }


/* Eye toggle */
.field-toggle {
    position: absolute;
    right: 12px;
    background: transparent !important;
    border: none !important;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease;
    box-shadow: none !important;
}

.field-toggle:hover { color: #475569; }


/* Password strength */
.password-strength { margin-top: 8px; }

.strength-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-segment {
    height: 100%;
    background-color: #e2e8f0;
    border-radius: 2px;
    transition: background-color 0.25s ease;
}

.password-strength[data-level="1"] .strength-segment:nth-child(1) { background-color: #ef4444; }
.password-strength[data-level="2"] .strength-segment:nth-child(-n+2) { background-color: #f59e0b; }
.password-strength[data-level="3"] .strength-segment:nth-child(-n+3) { background-color: #06b6d4; }
.password-strength[data-level="4"] .strength-segment:nth-child(-n+4) { background-color: #22c55e; }

.strength-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 5px;
    text-align: right;
}

.password-strength[data-level="1"] .strength-label { color: #ef4444; }
.password-strength[data-level="2"] .strength-label { color: #d97706; }
.password-strength[data-level="3"] .strength-label { color: #0891b2; }
.password-strength[data-level="4"] .strength-label { color: #16a34a; }

.field-hint {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
    margin-bottom: 0;
}


/* ── OPTIONS ─────────────────────────────────────────────────────── */
.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    margin: 0;
    accent-color: #2563eb;
    width: 15px;
    height: 15px;
    border-radius: 4px;
    cursor: pointer;
}

.check-row a { color: #2563eb; text-decoration: none; }
.check-row a:hover { text-decoration: underline; }

.forgot-password {
    font-size: 13px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.forgot-password:hover { color: #1d4ed8; text-decoration: underline; }


/* ── VALIDATION ─────────────────────────────────────────────────── */
.field-validation-error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 5px;
}

.validation-summary-errors {
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}

.validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.captcha-message {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    min-height: 18px;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 16px;
}


/* ── PRIMARY BUTTON ─────────────────────────────────────────────── */
.primary-button {
    width: 100%;
    padding: 13px;
    margin-top: 18px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3);
    font-family: 'Inter', sans-serif;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(37,99,235,0.45);
}

.primary-button:active {
    transform: translateY(0) scale(0.98);
}

.primary-button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.button-spinner {
    display: none;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.primary-button.is-loading .button-spinner { display: inline-block; }

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ── SWITCH AUTH ─────────────────────────────────────────────────── */
.switch-auth {
    text-align: center;
    font-size: 13.5px;
    color: #64748b;
    margin-top: 22px;
}

.switch-auth a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.switch-auth a:hover { text-decoration: underline; }


/* ── PHONE LOGIN SECTION ─────────────────────────────────────────── */
.phone-login-coming {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: #94a3b8;
    font-size: 12px;
}

.phone-login-coming-line {
    flex: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.phone-login-coming-text {
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}


/* ── CAPTCHA LOGO HIDE ───────────────────────────────────────────── */
.geetest_logo,
.geetest_commit,
.geetest_copyright,
.geetest_radar_tip,
a.geetest_logo,
a.geetest_copyright,
a[href*="geetest"],
svg[class*="geetest"],
[class*="geetest_logo"],
[class*="geetest_copyright"],
[class*="geetest_brand"],
[class*="geetest_footer"] > a,
[class*="geetest_bottom"] > a {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

#captcha-box,
.geetest_holder { position: relative !important; }

#captcha-box::after,
.geetest_holder::after {
    content: "";
    position: absolute;
    right: 8px; bottom: 4px;
    width: 110px; height: 28px;
    background-color: #ffffff;
    z-index: 9999;
    pointer-events: none;
}


/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .auth-page {
        grid-template-columns: 1fr;
        max-width: 460px;
        min-height: auto;
    }
    .auth-brand { display: none; }
    .auth-form-area { padding: 40px 28px; }
}

@media (max-width: 480px) {
    .auth-section { padding: 24px 16px; }
    .auth-form-area { padding: 32px 20px; }
}
