/* ═══════════════════════════════════════════════════════════
   AIRBID — auth.css  (login + register)
═══════════════════════════════════════════════════════════ */

/* ── BODY ── */
.auth-body {
    min-height: 100vh;
    background: var(--surface-low);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ── TOP BAR ── */
.auth-topbar {
    height: 64px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.auth-topbar-link {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.auth-topbar-link:hover { color: var(--vibrant-coral); }

/* ── MAIN SPLIT LAYOUT ── */
.auth-main {
    flex: 1;
    display: flex;
    align-items: stretch;
}

.auth-split {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 64px);
}

/* ── LEFT PANEL ── */
.auth-panel-left {
    width: 42%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-panel-content {
    position: relative;
    z-index: 1;
}

.auth-panel-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--emerald-accent);
    display: block;
    margin-bottom: 20px;
    opacity: 0.9;
}

.auth-panel-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.auth-panel-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 360px;
}

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

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

.auth-panel-check {
    font-size: 20px;
    color: var(--emerald-accent);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    flex-shrink: 0;
}

/* Decorative circle */
.auth-panel-deco {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 80px solid rgba(255,255,255,0.04);
    bottom: -140px;
    right: -100px;
    pointer-events: none;
}

/* ── RIGHT PANEL ── */
.auth-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: var(--surface-lowest);
    overflow-y: auto;
}

.auth-form-wrap {
    width: 100%;
    max-width: 460px;
}

.auth-form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--deep-teal);
    margin-bottom: 6px;
}

.auth-form-sub {
    font-size: 14px;
    color: var(--outline);
    margin-bottom: 28px;
}

.auth-link {
    color: var(--vibrant-coral);
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-link:hover { opacity: 0.78; }

/* ── ROLE TOGGLE ── */
.auth-role-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-role-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 18px 12px;
    background: var(--surface-low);
    border: 2px solid var(--outline-variant);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Nunito Sans', sans-serif;
    text-align: center;
}
.auth-role-btn:hover {
    border-color: var(--deep-teal);
    background: rgba(23, 62, 75, 0.04);
}

.auth-role-active {
    border-color: var(--vibrant-coral) !important;
    background: rgba(240, 107, 100, 0.06) !important;
}

.auth-role-icon {
    font-size: 28px;
    color: var(--outline);
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    transition: color 0.2s;
    margin-bottom: 2px;
}
.auth-role-active .auth-role-icon {
    color: var(--vibrant-coral);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.auth-role-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--on-surface);
    display: block;
}
.auth-role-active .auth-role-name { color: var(--vibrant-coral); }

.auth-role-desc {
    font-size: 12px;
    color: var(--outline);
    display: block;
}

/* ── FORM FIELDS ── */
.auth-form { display: flex; flex-direction: column; gap: 0; }

.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.auth-label-row .auth-label { margin-bottom: 0; }

.auth-forgot {
    font-size: 12px;
    font-weight: 700;
    color: var(--vibrant-coral);
    text-decoration: none;
    transition: opacity 0.2s;
}
.auth-forgot:hover { opacity: 0.75; }

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

.auth-input-icon {
    position: absolute;
    left: 14px;
    font-size: 18px;
    color: var(--outline);
    pointer-events: none;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.auth-input {
    width: 100%;
    background: var(--surface-low);
    border: 2px solid var(--outline-variant);
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14px;
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-input:focus {
    border-color: var(--deep-teal);
    box-shadow: 0 0 0 3px rgba(23, 62, 75, 0.10);
    background: #ffffff;
}
.auth-input.input-error {
    border-color: var(--vibrant-coral);
    box-shadow: 0 0 0 3px rgba(240, 107, 100, 0.12);
}
.auth-input::placeholder { color: var(--outline); }

/* password field with toggle */
.auth-input-pw { padding-right: 44px; }

.auth-pw-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--outline);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.auth-pw-toggle:hover { color: var(--deep-teal); }
.auth-pw-toggle .material-symbols-outlined { font-size: 20px; }

.auth-error {
    font-size: 12px;
    color: var(--vibrant-coral);
    margin-top: 5px;
    margin-bottom: 0;
    display: none;
}
.auth-error.visible { display: block; }

/* Password strength bar */
.auth-strength-wrap {
    height: 4px;
    background: var(--outline-variant);
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
    display: none;
}
.auth-strength-wrap.visible { display: block; }

.auth-strength-bar {
    height: 100%;
    border-radius: 99px;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}
.strength-weak   { width: 33%; background: #dc3545; }
.strength-medium { width: 66%; background: #fd7e14; }
.strength-strong { width: 100%; background: var(--emerald-accent); }

.auth-strength-label {
    font-size: 11px;
    margin-top: 4px;
    margin-bottom: 0;
    font-weight: 700;
    display: none;
}
.auth-strength-label.visible { display: block; }
.strength-text-weak   { color: #dc3545; }
.strength-text-medium { color: #fd7e14; }
.strength-text-strong { color: var(--emerald-accent); }

/* Remember me / terms */
.auth-remember { margin-bottom: 20px; }

.auth-check-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--on-surface-variant);
    cursor: pointer;
    line-height: 1.5;
}

.auth-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--vibrant-coral);
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── SUBMIT BUTTON ── */
.auth-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--vibrant-coral);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 15px 24px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}
.auth-submit-btn .material-symbols-outlined { font-size: 20px; }
.auth-submit-btn:hover { background: #e05a53; }
.auth-submit-btn:active { transform: scale(0.98); }
.auth-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ── DIVIDER ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--outline);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--outline-variant);
}

/* ── SOCIAL BUTTONS ── */
.auth-social-row {
    display: flex;
    gap: 12px;
}

.auth-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface-low);
    border: 2px solid var(--outline-variant);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.auth-social-btn .material-symbols-outlined { font-size: 18px; color: var(--outline); }
.auth-social-btn:hover {
    border-color: var(--deep-teal);
    background: rgba(23,62,75,0.04);
}

/* ══════════════════════════════════
   FORGOT PASSWORD
══════════════════════════════════ */
.fp-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(240, 107, 100, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.fp-icon {
    font-size: 36px;
    color: var(--vibrant-coral);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 36;
}

.fp-back-link {
    text-align: center;
    font-size: 13px;
    color: var(--outline);
    margin-top: 20px;
    margin-bottom: 0;
}

/* Success state */
.fp-success-wrap {
    text-align: center;
}
.fp-success-icon-wrap {
    width: 88px;
    height: 88px;
    background: rgba(76, 195, 155, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}
.fp-success-icon {
    font-size: 44px;
    color: var(--emerald-accent);
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}
.fp-success-desc {
    font-size: 14px;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin-bottom: 24px;
}
.fp-success-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--surface-low);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--on-surface-variant);
    line-height: 1.6;
    margin-bottom: 28px;
    text-align: left;
}
.fp-note-icon {
    font-size: 18px;
    color: var(--outline);
    flex-shrink: 0;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 20;
}
.fp-back-btn {
    text-decoration: none;
    display: flex;
}
.fp-resend-text {
    font-size: 13px;
    color: var(--outline);
    margin-top: 16px;
    margin-bottom: 0;
}
.fp-resend-btn {
    background: none;
    border: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--vibrant-coral);
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}
.fp-resend-btn:hover { opacity: 0.75; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 991.98px) {
    .auth-panel-left { width: 40%; padding: 48px 36px; }
    .auth-panel-right { padding: 40px 28px; }
}

@media (max-width: 767.98px) {
    .auth-split { flex-direction: column; min-height: unset; }

    .auth-panel-left {
        width: 100%;
        padding: 40px 24px 48px;
    }
    .auth-panel-heading { font-size: 26px; }
    .auth-panel-sub { display: none; }
    .auth-panel-list { flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .auth-panel-list li { font-size: 13px; }
    .auth-panel-deco { display: none; }

    .auth-panel-right {
        padding: 40px 24px 56px;
        justify-content: flex-start;
    }
    .auth-form-wrap { max-width: 100%; }
}

@media (max-width: 575.98px) {
    .auth-topbar { padding: 0 20px; }
    .auth-panel-left { padding: 32px 20px 40px; }
    .auth-panel-list { display: none; }
    .auth-panel-right { padding: 32px 20px 48px; }
    .auth-role-toggle { gap: 8px; }
    .auth-role-btn { padding: 14px 8px; }
    .auth-role-icon { font-size: 24px; }
    .auth-social-row { flex-direction: column; }
}
