/* ===== Auth Pages — Landing-Style Design ===== */

/* ── CSS tokens (match landing.css) ───────────────────────────── */
:root {
    --auth-acc:   #1D6FF2;
    --auth-acc2:  #1458CC;
    --auth-navy:  #0B1D35;
    --auth-navy2: #060E1A;
    --auth-grn:   #0FB97A;
    --auth-txt:   #0B1D35;
    --auth-txt2:  #3D5A80;
    --auth-bdr:   rgba(29,111,242,0.14);
    --auth-bg:    #F2F7FF;
    --auth-sans:  'Sora', system-ui, sans-serif;
    --auth-head:  'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ══════════════════════════════════════════════════════════════
   TWO-PANEL LAYOUT  (.auth-wrap)
   Used by Login and Register pages
══════════════════════════════════════════════════════════════ */

.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    font-family: var(--auth-sans);
}

/* ── Left Dark Panel ───────────────────────────────────────────── */
.auth-left {
    background: linear-gradient(160deg, var(--auth-navy2) 0%, #0D2145 55%, #0F3060 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 3.5rem 3rem calc(3.5rem + 40px);
    position: relative;
    overflow: hidden;
}

/* Background glow blobs */
.auth-left::before {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29,111,242,0.18) 0%, transparent 70%);
    top: -100px; right: -140px;
    pointer-events: none;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,185,122,0.14) 0%, transparent 70%);
    bottom: -60px; left: -60px;
    pointer-events: none;
}

.auth-left-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3rem;
    position: relative; z-index: 1;
    text-decoration: none;
}
.auth-left-brand img { border-radius: 10px; }
.auth-left-brand-name {
    font-family: var(--auth-head);
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.auth-left-headline {
    font-family: var(--auth-head);
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.22;
    letter-spacing: -0.8px;
    margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.auth-left-headline em {
    font-style: normal;
    background: linear-gradient(135deg, #38A3F5 30%, #0FB97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-left-sub {
    font-size: 0.9rem;
    color: rgba(210,235,255,0.68);
    line-height: 1.65;
    margin-bottom: 2.25rem;
    max-width: 340px;
    position: relative; z-index: 1;
}

.auth-left-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative; z-index: 1;
}
.auth-lf-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(210,235,255,0.82);
}
.auth-lf-dot {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(15,185,122,0.15);
    border: 1.5px solid rgba(15,185,122,0.45);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem;
    color: #0FB97A;
    flex-shrink: 0;
}

.auth-left-badge {
    margin-top: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(29,111,242,0.15);
    border: 1px solid rgba(56,163,245,0.28);
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #60B8FF;
    letter-spacing: 0.4px;
    position: relative; z-index: 1;
}
.auth-left-ping {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #0FB97A;
    animation: auth-ping 1.8s ease-in-out infinite;
}
@keyframes auth-ping {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.5); }
}

/* ── Right Form Panel ──────────────────────────────────────────── */
.auth-right {
    background: var(--auth-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 2rem;
    overflow-y: auto;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(29,111,242,0.09), 0 0 0 1px rgba(29,111,242,0.07);
    width: 100%;
    max-width: 440px;
    padding: 2.25rem 2rem;
    position: relative;
    animation: auth-rise 0.45s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes auth-rise {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-card-title {
    font-family: var(--auth-head);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--auth-txt);
    letter-spacing: -0.5px;
    margin-bottom: 0.2rem;
}
.auth-card-sub {
    font-size: 0.875rem;
    color: var(--auth-txt2);
    margin-bottom: 1.6rem;
}

/* ── Brand (legacy / fallback single-panel pages) ──────────────── */
.auth-brand { text-align: center; margin-bottom: 1.5rem; }
.auth-brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 0.75rem;
}
.auth-brand h1 {
    font-family: var(--auth-head);
    font-size: 1.4rem; font-weight: 800;
    color: var(--auth-txt); margin: 0 0 0.25rem 0; letter-spacing: -0.5px;
}
.auth-brand p { font-size: 0.875rem; color: var(--auth-txt2); margin: 0; }

/* ── Trial badge (Register) ────────────────────────────────────── */
.auth-trial-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(15,185,122,0.10); color: var(--auth-grn);
    border: 1px solid rgba(15,185,122,0.28);
    border-radius: 999px; padding: 5px 16px;
    font-size: 0.73rem; font-weight: 800; letter-spacing: 0.8px;
    margin: 10px 0 6px;
}
.auth-trial-headline {
    font-family: var(--auth-head);
    font-size: 1.45rem; font-weight: 800;
    color: var(--auth-txt); margin: 0 0 4px; letter-spacing: -0.6px;
}
.auth-trial-sub { font-size: 0.875rem; color: var(--auth-txt2); margin: 0 0 8px; }

/* ── Status messages ───────────────────────────────────────────── */
.auth-card .alert-danger {
    background: #FEF2F2; color: #B91C1C;
    border: 1px solid #FECACA; border-radius: 10px;
    padding: 0.7rem 1rem; font-size: 0.875rem; margin-bottom: 1rem;
}
.auth-card .alert-success {
    background: #F0FDF4; color: #15803D;
    border: 1px solid #BBF7D0; border-radius: 10px;
    padding: 0.7rem 1rem; font-size: 0.875rem; margin-bottom: 1rem;
}

/* ── Form ──────────────────────────────────────────────────────── */
.auth-form label {
    display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--auth-txt2); margin-bottom: 0.3rem; letter-spacing: 0.2px;
}
.auth-form .form-floating {
    position: relative; margin-bottom: 1rem;
}
.auth-form .form-floating > label {
    position: static; display: block; font-size: 0.78rem; font-weight: 600;
    color: var(--auth-txt2); margin-bottom: 0.3rem;
    opacity: 1; transform: none; padding: 0;
}
.auth-form .form-control {
    width: 100%; padding: 0.7rem 1rem; font-size: 0.9375rem;
    border: 1.5px solid var(--auth-bdr); border-radius: 10px;
    background: #F7FAFF; color: var(--auth-txt);
    outline: none; transition: all 0.2s ease; box-sizing: border-box;
    font-family: var(--auth-sans);
}
.auth-form .form-control:focus {
    border-color: var(--auth-acc);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29,111,242,0.11);
}
.auth-form .form-control::placeholder { color: #A8BDD8; }

/* Checkbox */
.auth-form .form-check-input {
    width: 16px; height: 16px;
    border: 1.5px solid #A8BDD8; border-radius: 4px;
    cursor: pointer; vertical-align: middle;
    accent-color: var(--auth-acc);
}

/* Submit button */
.auth-form .btn-primary {
    width: 100%; padding: 0.8rem;
    font-size: 0.9375rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--auth-acc), var(--auth-acc2));
    border: none; border-radius: 12px; cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(29,111,242,0.28);
    font-family: var(--auth-head); letter-spacing: -0.2px;
    margin-top: 0.4rem;
}
.auth-form .btn-primary:hover {
    background: linear-gradient(135deg, #2278FF, var(--auth-acc));
    box-shadow: 0 6px 24px rgba(29,111,242,0.38);
    transform: translateY(-1px);
}
.auth-form .btn-primary:active { transform: translateY(0); }

/* Validation */
.auth-form .text-danger,
.auth-form .validation-message {
    color: #DC2626; font-size: 0.73rem; margin-top: 0.15rem; display: block;
}
.auth-form .validation-summary-errors ul { margin: 0; padding: 0 0 0 1.25rem; font-size: 0.8125rem; }

/* OR divider */
.auth-or-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.1rem 0 0; }
.auth-or-line { flex: 1; height: 1px; background: var(--auth-bdr); }
.auth-or-text { font-size: 0.7rem; font-weight: 700; color: #94A8C4; letter-spacing: 0.5px; }

/* Remember + Forgot row */
.auth-remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.auth-remember-label { font-weight: 400; color: var(--auth-txt2); font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; }
.auth-forgot-link { font-size: 0.8rem; font-weight: 600; color: var(--auth-acc); text-decoration: none; }
.auth-forgot-link:hover { text-decoration: underline; }

/* Signup/Signin CTA */
.auth-signup-cta { text-align: center; margin-top: 1.1rem; font-size: 0.875rem; color: var(--auth-txt2); }
.auth-signup-cta a { color: var(--auth-acc); font-weight: 700; text-decoration: none; }
.auth-signup-cta a:hover { text-decoration: underline; }

/* Register extras */
.auth-card-wide { max-width: 480px; }
.auth-section-label {
    font-size: 0.64rem; font-weight: 800; letter-spacing: 1.2px;
    color: #94A8C4; text-transform: uppercase;
    margin: 1rem 0 0.65rem;
}
.auth-section-label:first-of-type { margin-top: 0; }
.auth-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* Lang switcher link (inside card) */
.auth-lang-switch { text-align: center; margin-bottom: 0.75rem; font-size: 0.8rem; }
.auth-lang-switch a { color: var(--auth-acc); font-weight: 600; text-decoration: none; }
.auth-lang-switch a:hover { text-decoration: underline; }

/* btn-link (passkey etc.) */
.auth-form .btn-link {
    color: var(--auth-acc); font-weight: 500; text-decoration: none;
    font-size: 0.875rem; padding: 0.5rem; background: none; border: none;
    cursor: pointer; font-family: var(--auth-sans);
}
.auth-form .btn-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   LEGACY SINGLE-PANEL (.auth-page)
   Used by ForgotPassword, Lockout, and other minor auth pages
══════════════════════════════════════════════════════════════ */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, var(--auth-navy2) 0%, #0D2145 50%, #0F3060 100%);
    padding: 1rem;
    font-family: var(--auth-sans);
}
.auth-page .auth-card {
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28), 0 0 0 1px rgba(255,255,255,0.08);
    padding: 2.5rem 2rem;
    animation: auth-rise 0.45s cubic-bezier(.34,1.56,.64,1) both;
}

/* Error/Info pages */
.auth-message { text-align: center; padding: 2rem 0; }
.auth-message-icon {
    width: 80px; height: 80px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.5rem;
}
.auth-message-icon.error { background: #FEF2F2; }
.auth-message-icon.error svg { width: 40px; height: 40px; fill: #DC2626; }
.auth-message-icon.warning { background: #FFFBEB; }
.auth-message-icon.warning svg { width: 40px; height: 40px; fill: #D97706; }
.auth-message h1 { font-family: var(--auth-head); font-size: 1.25rem; color: var(--auth-txt); margin: 0 0 0.5rem; }
.auth-message p { color: var(--auth-txt2); font-size: 0.9375rem; margin: 0 0 1.5rem; }
.auth-message .btn-back {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: linear-gradient(135deg, var(--auth-acc), var(--auth-acc2));
    color: white; border: none; border-radius: 12px;
    font-size: 0.875rem; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: all 0.25s ease; box-shadow: 0 4px 12px rgba(29,111,242,0.25);
}
.auth-message .btn-back:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,111,242,0.35); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-left {
        padding: 2rem 1.75rem 1.75rem;
        min-height: auto;
    }
    .auth-left-headline { font-size: 1.6rem; }
    .auth-left-features { display: none; }
    .auth-left-badge { margin-top: 1.5rem; }
    .auth-right { padding: 1.5rem 1rem; }
    .auth-card { max-width: 100%; }
}
@media (max-width: 480px) {
    .auth-two-col { grid-template-columns: 1fr; }
    .auth-card { padding: 2rem 1.25rem; border-radius: 16px; }
    .auth-left-headline { font-size: 1.35rem; }
    .auth-left { padding: 1.5rem 1.25rem 1.25rem; }
}
