/* ==============================================
   UnLost — Auth pages shared stylesheet
   Used by: login, signup, logout,
            email_confirm, verification_sent
   ============================================== */

/* ── Design tokens ─────────────────────────────── */
:root {
    --cream:        #faf7f2;
    --warm-white:   #f4f0e8;
    --parchment:    #ede8de;
    --navy:         #1a2744;
    --navy-light:   #253562;
    --beacon:       #e8420e;
    --beacon-warm:  #ff5a2a;
    --beacon-pale:  #fde8e2;
    --gold:         #c8941a;
    --ink:          #1c1c1c;
    --mid:          #6b6659;
    --rule:         #d8d2c6;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Lato', sans-serif;
    --font-mono:    'Courier Prime', Courier, monospace;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body { font-family: var(--font-body); color: var(--ink); }
a    { color: inherit; text-decoration: none; }

/* ── Pulsing logo dot ──────────────────────────── */
.logo-dot {
    background: var(--beacon);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(232,66,14,0.5); }
    50%       { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(232,66,14,0); }
}

/* ── Floating nav logo (used on centred pages) ─── */
.nav-logo {
    position: fixed;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--cream);
    z-index: 10;
}

.nav-logo .logo-dot { width: 8px; height: 8px; }

@media (max-width: 560px) {
    .nav-logo { left: 20px; top: 20px; }
}

/* ── Split-layout left panel (login / signup / verification_sent) */
.auth-panel,
.panel {
    background: var(--navy);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.auth-panel__logo,
.panel__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    color: var(--cream);
}

.auth-panel__logo .logo-dot,
.panel__logo .logo-dot { width: 10px; height: 10px; }

.auth-panel__mid,
.panel__mid { position: relative; z-index: 1; }

.auth-panel__kicker,
.panel__kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--beacon);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-panel__kicker::before,
.panel__kicker::before {
    content: '';
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--beacon);
}

.auth-panel__headline,
.panel__headline {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 900;
    color: var(--cream);
    line-height: 1.07;
    margin-bottom: 20px;
}

.auth-panel__headline em,
.panel__headline em { color: var(--beacon); font-style: italic; }

.auth-panel__desc,
.panel__desc {
    font-size: 15px;
    color: rgba(250,247,242,0.55);
    line-height: 1.75;
    max-width: 360px;
}

.auth-panel__footer,
.panel__footer {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(250,247,242,0.25);
}

.auth-panel__footer a,
.panel__footer a { color: var(--beacon); }

/* ── Split-layout right panel ──────────────────── */
.auth-form-wrap,
.content-wrap {
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    min-height: 100vh;
}

.auth-form-box,
.content-box {
    width: 100%;
    max-width: 440px;
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.auth-form-box__title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 6px;
}

.auth-form-box__sub {
    font-size: 14px;
    color: var(--mid);
    margin-bottom: 32px;
}

.auth-form-box__sub a { color: var(--beacon); font-weight: 700; transition: opacity 0.15s; }
.auth-form-box__sub a:hover { opacity: 0.75; }

/* ── Centred card (logout / email_confirm) ─────── */
.logout-card,
.confirm-card {
    background: var(--cream);
    border-radius: 4px;
    padding: 52px 48px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.45s ease both;
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.logout-card  { max-width: 440px; }
.confirm-card { max-width: 480px; }

@media (max-width: 560px) {
    .logout-card,
    .confirm-card { padding: 40px 24px; }
}

/* ── Background watermark text ─────────────────── */
.bg-text {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
}

.bg-text span {
    font-family: var(--font-display);
    font-size: clamp(80px, 18vw, 300px);
    font-weight: 900;
    font-style: italic;
    color: rgba(255,255,255,0.025);
    letter-spacing: -0.04em;
    white-space: nowrap;
}

/* ── Kicker label ──────────────────────────────── */
.kicker {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--beacon);
    margin-bottom: 10px;
    text-align: center;
}

/* ── Form elements ─────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--mid);
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: #fff;
    border: 1.5px solid var(--rule);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26,39,68,0.07);
}

.form-control::placeholder { color: #bbb5aa; }
.form-control.error { border-color: var(--beacon); }

.form-hint {
    font-size: 12px;
    color: var(--mid);
    margin-top: 5px;
    line-height: 1.5;
}

.field-errors { margin-top: 5px; }

.field-error {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--beacon);
    display: block;
    margin-top: 4px;
}

/* ── Alert banners ─────────────────────────────── */
.alert {
    padding: 13px 16px;
    border-left: 3px solid;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert--error   { background: #fde8e2; border-color: var(--beacon); color: #8a1a00; }
.alert--success { background: #e6f5e0; border-color: #2a8a2a;       color: #1a5a1a; }
.alert--info    { background: #e8edf8; border-color: var(--navy);   color: var(--navy); }

/* ── Buttons ───────────────────────────────────── */
.btn-primary {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--beacon);
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 16px rgba(232,66,14,0.25);
    margin-top: 8px;
}

.btn-primary:hover {
    background: var(--beacon-warm);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(232,66,14,0.32);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
    display: block;
    width: 100%;
    padding: 13px;
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--rule);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    margin-top: 10px;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--cream);
}

.btn-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Auth footer / switch link ─────────────────── */
.auth-footer-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--mid);
}

.auth-footer-link a { color: var(--navy); font-weight: 700; transition: color 0.15s; }
.auth-footer-link a:hover { color: var(--beacon); }

/* ── Two-column form row (signup) ──────────────── */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ── Checkbox + forgot-password row (login) ─────── */
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--mid);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--beacon);
    flex-shrink: 0;
}

.forgot-link {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mid);
    white-space: nowrap;
    transition: color 0.15s;
}

.forgot-link:hover { color: var(--beacon); }

/* ── Terms note (signup) ───────────────────────── */
.terms-note {
    font-size: 12px;
    color: var(--mid);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.terms-note a { color: var(--navy); text-decoration: underline; }

/* ── Benefit list (signup left panel) ─────────── */
.benefit-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.benefit {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: rgba(250,247,242,0.6);
    line-height: 1.5;
}

.benefit__check {
    width: 20px; height: 20px;
    background: rgba(232,66,14,0.2);
    border: 1px solid rgba(232,66,14,0.4);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.benefit__check svg { width: 10px; height: 10px; color: var(--beacon); }

/* ── Icon circles (logout / email_confirm) ─────── */
.logout-icon,
.confirm-icon {
    width: 72px; height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.logout-icon {
    background: var(--warm-white);
    border: 2px solid var(--rule);
}

.logout-icon svg { width: 28px; height: 28px; color: var(--mid); }

.confirm-icon--confirm {
    background: rgba(232,66,14,0.1);
    border: 2px solid rgba(232,66,14,0.3);
}

.confirm-icon--invalid {
    background: #f5e0e0;
    border: 2px solid #e08080;
}

.confirm-icon svg { width: 30px; height: 30px; }
.confirm-icon--confirm svg { color: var(--beacon); }
.confirm-icon--invalid svg { color: #a04040; }

/* ── Card titles / descriptions ────────────────── */
.logout-title,
.confirm-title,
.content-title {
    font-family: var(--font-display);
    font-weight: 900;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 14px;
}

.logout-title   { font-size: 30px; margin-bottom: 10px; }
.confirm-title  { font-size: clamp(26px, 4vw, 36px); }
.content-title  { font-size: clamp(26px, 3.5vw, 36px); text-align: center; }

.logout-desc,
.confirm-desc,
.content-desc {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.7;
    margin-bottom: 30px;
}

.logout-desc  { line-height: 1.65; margin-bottom: 32px; }
.content-desc { text-align: center; }

/* ── Pill email display (confirm / verification) ─ */
.confirm-email-pill,
.email-display {
    display: inline-block;
    background: var(--warm-white);
    border: 1.5px solid var(--rule);
    border-radius: 20px;
    padding: 7px 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    word-break: break-all;
    margin-bottom: 8px;
}

/* ── Invalid note (email_confirm) ──────────────── */
.invalid-note {
    font-size: 13px;
    color: var(--mid);
    margin-top: 16px;
    line-height: 1.6;
}

.invalid-note a { color: var(--beacon); font-weight: 700; }

/* ── Verification sent — envelope animation ─────── */
.envelope-wrap {
    position: relative;
    width: 100px;
    height: 80px;
    margin: 0 auto 32px;
}

.envelope {
    width: 100px;
    height: 80px;
    background: var(--navy);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.envelope__flap {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: var(--navy-light);
    clip-path: polygon(0 0, 50% 60%, 100% 0);
}

.envelope__lines {
    position: absolute;
    bottom: 12px; left: 14px; right: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.envelope__line {
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.envelope__line:last-child { width: 60%; }

.envelope__dot {
    position: absolute;
    top: -8px; right: -8px;
    width: 24px; height: 24px;
    background: var(--beacon);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: bounceDot 1.5s ease-in-out infinite;
}

@keyframes bounceDot {
    0%, 100% { transform: scale(1) translateY(0); }
    50%       { transform: scale(1.15) translateY(-3px); }
}

.envelope__dot svg { width: 12px; height: 12px; color: #fff; }

/* ── Verification sent — checklist steps ───────── */
.check-steps {
    background: var(--warm-white);
    border: 1.5px solid var(--rule);
    border-radius: 4px;
    padding: 22px;
    margin-bottom: 24px;
}

.check-steps__label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--mid);
    margin-bottom: 14px;
}

.check-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
}

.check-step:not(:last-child) { border-bottom: 1px solid var(--rule); }

.check-step__num {
    width: 22px; height: 22px;
    background: var(--navy);
    color: var(--cream);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.check-step__text { font-size: 14px; color: var(--ink); line-height: 1.5; }

/* ── Verification sent — resend section ─────────── */
.resend-section {
    text-align: center;
    padding-top: 16px;
    border-top: 1.5px solid var(--rule);
}

.resend-section p { font-size: 14px; color: var(--mid); margin-bottom: 14px; }

.btn-resend {
    background: none;
    border: 2px solid var(--navy);
    border-radius: 2px;
    padding: 11px 24px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--navy);
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}

.btn-resend:hover { background: var(--navy); color: var(--cream); }

.spam-note { font-size: 12px; color: var(--mid); text-align: center; margin-top: 16px; line-height: 1.6; }
.spam-note a { color: var(--navy); text-decoration: underline; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 860px) {
    body { grid-template-columns: 1fr !important; }
    .auth-panel,
    .panel { display: none; }
    .auth-form-wrap,
    .content-wrap { padding: 48px 24px; }
    .form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .auth-form-wrap,
    .content-wrap { padding: 40px 20px; }
}
