/**
 * auth2.css - authentication pages (login, register, password reset, email
 * verification) styled to match the site2 marketing design (warm gourmet
 * editorial: Fraunces + Hanken Grotesk, espresso / cream / terracotta / gold).
 * Loaded after site2.css, so it reuses its CSS variables. It styles the
 * existing site-* class names the auth views already use, so the views did not
 * need to change.
 */

:root { --site-muted: var(--muted); }

body.auth-body {
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
}

/* ---------- Split-screen shell ---------- */
.auth-shell { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

/* Left brand panel */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px;
    color: #fff;
    background: radial-gradient(120% 120% at 0% 0%, var(--espresso2), var(--espresso) 60%);
}
.auth-brand::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(540px 360px at 90% -10%, rgba(226,85,43,.45), transparent 60%),
        radial-gradient(480px 360px at 10% 110%, rgba(224,163,62,.30), transparent 60%);
}
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 23px; font-weight: 600; color: #fff; }
.auth-logo .mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; color: #fff;
    background: linear-gradient(145deg, var(--terra), var(--gold));
    box-shadow: 0 8px 22px rgba(226,85,43,.5);
}

.auth-brand-content { max-width: 440px; }
.auth-brand .eyebrow { color: var(--gold); margin-bottom: 18px; }
.auth-brand h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 14px; }
.auth-brand h1 em { font-style: italic; color: var(--gold); }
.auth-brand .lead { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }

.auth-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; align-items: center; gap: 13px; font-size: 15.5px; color: rgba(255,255,255,.92); }
.auth-points .tick {
    width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto; display: grid; place-items: center; font-size: 17px; color: #fff;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
}
.auth-brand-foot { color: rgba(255,255,255,.6); font-size: 13.5px; }

/* Right form side */
.auth-main { display: flex; flex-direction: column; min-height: 100vh; padding: 26px 28px 32px; }
.auth-topbar { display: flex; align-items: center; justify-content: space-between; }
.auth-topbar .auth-logo-mobile { display: none; align-items: center; gap: 9px; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.auth-topbar .auth-logo-mobile .mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--terra), var(--gold)); }

.auth-body main.auth-main { align-items: center; }
.auth-card {
    width: 100%; max-width: 430px; margin: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    padding: 40px 38px;
}
/* Override site2.css's marketing `footer{}` rule (dark espresso bg + huge
   padding) so the auth footer sits flush on the cream page. */
.auth-foot { background: transparent; padding: 12px 0 2px; margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.auth-foot a { color: var(--muted); }
.auth-foot a:hover { color: var(--terra); }

/* ---------- Card typography ---------- */
.auth-card h4 { font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: -.01em; color: var(--ink); }
.auth-card p { color: var(--muted); font-size: 15px; }

/* ---------- Form controls ---------- */
.site-form-group { margin-bottom: 18px; }
.site-form-group label { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.site-form-group input,
.site-form-group select {
    width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
    padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--rs);
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
.site-form-group input:focus,
.site-form-group select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px rgba(226,85,43,.12); }
.site-form-group input::placeholder { color: #b6a895; }
.site-form-group small { display: block; margin-top: 6px; }

/* ---------- Buttons ---------- */
.site-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--sans); font-weight: 700; font-size: 15px; cursor: pointer;
    padding: 13px 24px; border-radius: 999px; border: none; transition: transform .2s, box-shadow .2s, background .2s;
}
.site-btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 28px rgba(226,85,43,.32); }
.site-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(226,85,43,.42); }
.site-btn-block { width: 100%; }
.site-btn-lg { padding: 15px 28px; font-size: 16px; }

.site-btn-google {
    display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%;
    font-family: var(--sans); font-weight: 600; font-size: 15px; color: var(--ink);
    padding: 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.site-btn-google:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow); }
.site-btn-google svg { width: 19px; height: 19px; }

/* ---------- Divider ---------- */
.site-auth-divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.site-auth-divider::before, .site-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Alerts ---------- */
.site-auth-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: var(--rs); font-size: 14px; margin-bottom: 20px; line-height: 1.5; border: 1px solid transparent; }
.site-auth-alert i { font-size: 18px; margin-top: 1px; }
.site-auth-alert-error { background: #fdecea; color: #a3331b; border-color: #f6cfc7; }
.site-auth-alert-success { background: #e9f5ee; color: #1d6b46; border-color: #c5e6d3; }
.site-auth-alert-warning { background: #fdf3e2; color: #9a6a14; border-color: #f3dcae; }
.site-auth-alert a { text-decoration: underline; font-weight: 600; }

/* ---------- Verify / status icon badge ---------- */
.site-auth-icon-badge { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; font-size: 34px; background: rgba(226,85,43,.1); color: var(--terra); }

/* ---------- Language switch ---------- */
.site-lang-switch { position: relative; }
.site-icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: border-color .15s, color .15s; }
.site-icon-btn:hover { border-color: var(--terra); color: var(--terra); }
.site-lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 170px; display: none; z-index: 30; }
.site-lang-menu.show { display: block; }
.site-lang-menu form { margin: 0; }
.site-lang-menu button { width: 100%; text-align: left; background: none; border: none; padding: 9px 13px; border-radius: 9px; font-family: var(--sans); font-size: 14.5px; color: var(--ink); cursor: pointer; }
.site-lang-menu button:hover { background: var(--cream); }
.site-lang-menu button.active { color: var(--terra); font-weight: 700; }

/* ---------- Minimal utilities used by the auth views ---------- */
.auth-card .mb-2 { margin-bottom: 8px; }
.auth-card .mb-3 { margin-bottom: 16px; }
.auth-card .mb-4 { margin-bottom: 24px; }
.auth-card .text-center { text-align: center; }
.auth-card .d-flex { display: flex; }
.auth-card .justify-content-between { justify-content: space-between; }
.auth-card a { color: var(--terra); font-weight: 600; }
.auth-card a:hover { color: var(--terra-d); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-topbar .auth-logo-mobile { display: inline-flex; }
    .auth-main { padding: 22px 20px 28px; }
    .auth-card { padding: 32px 24px; box-shadow: var(--shadow); }
}

/* Brand logo image (replaces the gradient .mark) */
.auth-logo .brand-img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 8px 22px rgba(226, 85, 43, .5); display: block; }
.auth-logo-mobile .brand-img { width: 32px; height: 32px; border-radius: 9px; display: block; }
