/* =============================================================
   login.css  →  place at  public/build/assets/login.css
   OR reference via Vite manifest if you prefer.

   Fonts loaded in guest.blade.php:
     - Playfair Display (display headings, italic accent)
     - Outfit (UI body text)
   ============================================================= */

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

/* ── CSS tokens ── */
:root {
    --ink:       #0b0d17;
    --ink-2:     #3a3d52;
    --ink-3:     #7a7d96;
    --ink-4:     #b0b3cc;
    --surface:   #f7f7fb;
    --surface-2: #eeeef6;
    --white:     #ffffff;
    --accent:    #2a52e8;
    --accent-2:  #1e3ec0;
    --accent-bg: #eef1fd;

    /* panel */
    --panel-bg:  #0b0e1f;
    --panel-mid: #111428;
    --panel-ink: rgba(255,255,255,0.9);
    --panel-muted: rgba(255,255,255,0.42);
    --panel-border: rgba(255,255,255,0.07);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

/* ── Body ── */
body { background: var(--surface); }

/* ============================================================
   .box  — two-column shell
   ============================================================ */
.box {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   .box__panel  — left decorative column
   ============================================================ */
.box__panel {
    position: relative;
    flex: 0 0 420px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    isolation: isolate;
}

.box__panel-bg {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 90% 60% at 15%  5%,  #1a2f9e 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 85% 90%,  #0f1f75 0%, transparent 50%),
        radial-gradient(ellipse 80% 80% at 50% 50%,  #070a1a 0%, #070a1a 100%);
}

/* Decorative floating orbs */
.orb {
    position: absolute; border-radius: 50%; z-index: 0;
    filter: blur(72px); pointer-events: none;
}
.orb--1 { width: 300px; height: 300px; background: #1e3ec0; opacity: 0.25; top: -80px; left: -80px; }
.orb--2 { width: 200px; height: 200px; background: #4f6ef7; opacity: 0.18; bottom: 60px; right: -60px; }
.orb--3 { width: 140px; height: 140px; background: #7b9aff; opacity: 0.12; top: 45%; left: 55%; transform: translate(-50%,-50%); }

.box__panel-inner {
    position: relative; z-index: 1;
    padding: 52px 44px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    width: 100%;
    gap: 36px;
}

/* Brand */
.brand {
    display: flex; align-items: center; gap: 10px;
}
.brand__icon {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.88);
}
.brand__icon svg { width: 24px; height: 24px; }
.brand > span {
    font-family: 'Outfit', sans-serif;
    font-size: 16px; font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.01em;
}

/* Panel headline */
.panel-copy h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 44px; font-weight: 700;
    color: #ffffff;
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}
.panel-copy h2 em {
    font-style: italic;
    color: #7b9aff;
}
.panel-copy p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; line-height: 1.75;
    color: rgba(255,255,255,0.42);
    max-width: 300px;
}

/* Stats */
.panel-stats {
    display: flex; gap: 0;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}
.stat {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.stat:last-child { border-right: none; }
.stat__num {
    font-family: 'Playfair Display', serif;
    font-size: 22px; font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 4px;
}
.stat__label {
    font-family: 'Outfit', sans-serif;
    font-size: 10px; font-weight: 400;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase; letter-spacing: 0.08em;
}

/* Testimonial */
.panel-quote {
    border-left: 2px solid rgba(123,154,255,0.4);
    padding-left: 16px;
}
.panel-quote p {
    font-family: 'Outfit', sans-serif;
    font-size: 13px; line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
    font-style: italic;
}
.panel-quote footer {
    display: flex; align-items: center; gap: 10px;
}
.quote-av {
    width: 28px; height: 28px; border-radius: 50%;
    background: #2a52e8;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 9px; font-weight: 600; color: white;
    flex-shrink: 0;
}
.panel-quote footer strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,0.7);
}
.panel-quote footer span {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: rgba(255,255,255,0.32);
}

/* ============================================================
   .form  — right slot (hosts login.blade.php slot content)
   ============================================================ */
.form {
    flex: 1;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    background: var(--white);
    max-width: 520px;      /* cap on very wide screens */
    margin: 0 auto;
    width: 100%;
}

/* Mobile brand (hidden on desktop) */
.brand--mobile { display: none; margin-bottom: 32px; }
.brand--mobile .brand__icon { color: var(--ink); }
.brand--mobile > span { color: var(--ink); font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600; }

/* Form header */
.form-header { margin-bottom: 32px; }

.form-eyebrow {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.form-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px; font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 7px;
}

.form-header p {
    font-family: 'Outfit', sans-serif;
    font-size: 14px; color: var(--ink-3); line-height: 1.6;
}

/* Auth status flash */
.auth-status {
    display: block;
    margin-bottom: 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px; color: #166534;
    background: #dcfce7;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.login-form { width: 100%; }

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 500;
    color: var(--ink-2);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.input-wrap { position: relative; }

/* Leading icon */
.input-icon {
    position: absolute; left: 13px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--ink-4);
    pointer-events: none;
    transition: color 0.2s;
}

/* Text inputs */
.field input[type="email"],
.field input[type="password"],
.field input[type="text"] {
    width: 100%; height: 46px;
    background: var(--surface);
    border: 1.5px solid var(--surface-2);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 14px; color: var(--ink);
    padding: 0 44px 0 40px;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    -webkit-appearance: none;
}
.field input::placeholder {
    color: var(--ink-4);
    font-size: 13px;
}
.field input:hover {
    border-color: #c5c7e0;
    background: #f4f4fa;
}
.field input:focus {
    background: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(42, 82, 232, 0.10);
}
.field input.is-error {
    border-color: #e53e3e;
    background: #fff5f5;
}
.field input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
    color: var(--accent);
}

/* Eye toggle */
.eye-toggle {
    position: absolute; right: 11px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; padding: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--ink-4); transition: color 0.15s;
}
.eye-toggle svg { width: 16px; height: 16px; }
.eye-toggle:hover { color: var(--accent); }

/* Field error */
.field-error {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 11.5px; color: #c53030;
    margin-top: 5px;
}

/* ── Remember + Forgot row ── */
.form-row {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

/* Custom checkbox */
.remember {
    display: flex; align-items: center; gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px; color: var(--ink-3);
    cursor: pointer; user-select: none;
}
.remember input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 15px; height: 15px;
    border: 1.5px solid var(--ink-4);
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    flex-shrink: 0;
    position: relative;
}
.remember input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.remember input[type="checkbox"]:checked::after {
    content: '';
    position: absolute; left: 3px; top: 1px;
    width: 5px; height: 8px;
    border: 1.5px solid white; border-top: none; border-left: none;
    transform: rotate(45deg);
    display: block;
}
.remember__box { display: none; } /* legacy compat */

.forgot-link {
    font-family: 'Outfit', sans-serif;
    font-size: 12.5px; font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}
.forgot-link:hover { color: var(--accent-2); }

/* ── Submit button ── */
.btn-submit {
    width: 100%; height: 48px;
    background: var(--accent);
    color: white;
    border: none; border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 14px; font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background 0.18s, box-shadow 0.18s, transform 0.1s;
    box-shadow: 0 4px 18px rgba(42, 82, 232, 0.28);
    margin-bottom: 0;
}
.btn-submit svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-submit:hover {
    background: var(--accent-2);
    box-shadow: 0 6px 22px rgba(42, 82, 232, 0.38);
}
.btn-submit:active { transform: scale(0.985); }

/* ── Divider ── */
.or-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 22px 0;
    color: var(--ink-4);
    font-family: 'Outfit', sans-serif;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
}
.or-divider::before,
.or-divider::after {
    content: ''; flex: 1;
    height: 1px; background: var(--surface-2);
}

/* ── Social buttons ── */
.social-btns {
    display: flex; flex-direction: column; gap: 10px;
    margin-bottom: 28px;
}

.btn-social {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    height: 44px;
    background: var(--surface);
    border: 1.5px solid var(--surface-2);
    border-radius: var(--radius-sm);
    font-family: 'Outfit', sans-serif;
    font-size: 13.5px; font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.btn-social:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
    color: var(--accent);
}

/* ── Footer note ── */
.form-footnote {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 13px; color: var(--ink-4);
    margin-top: 0;
}
.form-footnote a {
    color: var(--accent); font-weight: 500;
    text-decoration: none;
    transition: color 0.15s;
}
.form-footnote a:hover { color: var(--accent-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .box__panel { display: none; }
    body { background: var(--white); }
    .form {
        padding: 48px 32px;
        justify-content: flex-start;
        padding-top: 60px;
        max-width: 100%;
    }
    .brand--mobile { display: flex; }
}

@media (max-width: 480px) {
    .form { padding: 40px 20px; }
    .form-header h1 { font-size: 26px; }
    .social-btns { flex-direction: column; }
}

/* ============================================================
   ENTRY ANIMATION
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.form-header   { animation: fadeUp 0.45s ease both; animation-delay: 0.05s; }
.login-form    { animation: fadeUp 0.45s ease both; animation-delay: 0.12s; }
.form-footnote { animation: fadeUp 0.45s ease both; animation-delay: 0.20s; }