/* ================================================================
   EMUA AUTH — Login / Register
   Lexus SIGN IN Aesthetic: Minimalist, Bold, Pure Black & White,
   Spacious, 100% Square (border-radius: 0), Premium Typography
   ================================================================ */

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.auth-section {
    padding: 64px 20px 80px 20px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
}

.auth-page {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    border-radius: 0 !important;
    background: #ffffff;
    border: none !important;
    box-shadow: none !important;
}

.auth-page--single {
    display: block;
}

/* ── FORM CONTAINER ─────────────────────────────────────────────── */
.auth-form-area {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border: none !important;
    border-radius: 0 !important;
}

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

/* ── LEXUS SIGN IN HEADER / TYPOGRAPHY ──────────────────────────── */
.auth-header {
    text-align: center;
    margin-bottom: 36px;
}

.auth-title {
    font-size: 38px;
    font-weight: 800;
    color: #000000;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    line-height: 1.15;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.form-subtitle {
    font-size: 14px;
    color: #555555;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

/* ── SOCIAL BUTTONS & DIVIDER ────────────────────────────────────── */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    border-radius: 0 !important;
    border: 1px solid #111111;
    background: #ffffff !important;
    color: #000000;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    box-sizing: border-box !important;
}

.social-auth-btn:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.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;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px;
    color: #888888;
    font-size: 12px;
    font-weight: 500;
    text-transform: lowercase;
}

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

/* ── FORM FIELDS (LEXUS CLEAN INPUTS - 50PX HEIGHT) ─────────────── */
.field-group {
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.auth-field {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0 !important;
}

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

.auth-field input {
    width: 100% !important;
    height: 50px !important;
    padding: 0 42px 0 44px !important;
    font-size: 14px !important;
    border: 1px solid #cccccc !important;
    border-radius: 0 !important;
    outline: none !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    box-sizing: border-box !important;
    font-family: inherit;
    transition: border-color 0.15s ease !important;
}

.auth-field input::placeholder {
    color: #999999;
    font-weight: 400;
}

.auth-field input:focus {
    border-color: #000000 !important;
    box-shadow: none !important;
}

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

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

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

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

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

.strength-segment {
    height: 100%;
    background-color: #e5e5e5;
    border-radius: 0 !important;
    transition: background-color 0.2s ease;
}

.password-strength[data-level="1"] .strength-segment:nth-child(1) { background-color: #dc2626; }
.password-strength[data-level="2"] .strength-segment:nth-child(-n+2) { background-color: #ea580c; }
.password-strength[data-level="3"] .strength-segment:nth-child(-n+3) { background-color: #2563eb; }
.password-strength[data-level="4"] .strength-segment:nth-child(-n+4) { background-color: #16a34a; }

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

.password-strength[data-level="1"] .strength-label { color: #dc2626; }
.password-strength[data-level="2"] .strength-label { color: #ea580c; }
.password-strength[data-level="3"] .strength-label { color: #2563eb; }
.password-strength[data-level="4"] .strength-label { color: #16a34a; }

.field-hint {
    font-size: 12px;
    color: #666666;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.4;
}

/* ── OPTIONS & CHECKBOX ──────────────────────────────────────────── */
.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: #444444;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    margin: 0;
    accent-color: #000000;
    width: 16px;
    height: 16px;
    border-radius: 0 !important;
    cursor: pointer;
}

.check-row a {
    color: #000000;
    font-weight: 600;
    text-decoration: underline;
}

.check-row a:hover {
    color: #333333;
}

.register-terms {
    margin-top: 14px;
    margin-bottom: 2px;
}

.forgot-password {
    font-size: 13px;
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.15s ease;
}

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

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

.validation-summary-errors {
    color: #b91c1c;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0 !important;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

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

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

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 0 !important;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

/* ── PRIMARY BUTTON (LEXUS STYLE - 50PX HEIGHT, SOLID BLACK) ─────── */
.primary-button {
    width: 100%;
    height: 50px;
    padding: 0 20px;
    margin-top: 22px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    border-radius: 0 !important;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
    box-shadow: none;
    font-family: inherit;
}

.primary-button:hover {
    background-color: #222222;
    border-color: #222222;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}

.primary-button:active {
    background-color: #333333;
    border-color: #333333;
    transform: none;
}

.primary-button:disabled {
    background-color: #f5f5f5;
    border-color: #e5e5e5;
    color: #999999;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

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

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

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

/* ── SWITCH AUTH LINK ────────────────────────────────────────────── */
.switch-auth {
    text-align: center;
    font-size: 13.5px;
    color: #555555;
    margin-top: 24px;
    margin-bottom: 0;
}

.switch-auth a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
    margin-left: 4px;
    transition: color 0.15s ease;
}

.switch-auth a:hover {
    color: #333333;
}

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

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

.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: 576px) {
    .auth-section {
        padding: 40px 16px;
    }
    .auth-title {
        font-size: 30px;
        letter-spacing: 2px;
    }
    .auth-field input {
        height: 48px !important;
    }
    .primary-button {
        height: 48px;
    }
}
