/* ═══════════════════════════════════════════════════════════════════════════
   auth.css — peer v2 auth pages (login, forgot, reset)
   Font: Plus Jakarta Sans (self-hosted)
   ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/css/fonts/PlusJakartaSans-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/css/fonts/PlusJakartaSans-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/css/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/css/fonts/PlusJakartaSans-Bold.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('/css/fonts/PlusJakartaSans-ExtraBold.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* ── Variables ────────────────────────────────────────────────────────────── */
:root {
    --brand:   #f97316;
    --brand-d: #ea6a08;
    --text:    #0a0a0a;
    --muted:   #666;
    --line:    #e8e8e8;
    --font:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --radius:  10px;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); height: 100%; background: #fff; color: var(--text); font-size: 16px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.al-wrap {
    display: flex;
    min-height: 100vh;
}

/* ── Left panel ───────────────────────────────────────────────────────────── */
.al-left {
    width: 420px;
    flex-shrink: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}

/* subtle radial glow */
.al-left::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,.18) 0%, transparent 70%);
    pointer-events: none;
}

.al-left-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}
.al-logo-mark {
    width: 32px; height: 32px;
    background: var(--brand);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.al-logo-mark svg { width: 17px; height: 17px; fill: #fff; }
.al-logo-name { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.al-logo-name span { color: var(--brand); }

.al-left-body { position: relative; }
.al-left-headline {
    font-size: 30px; font-weight: 900;
    color: #fff; line-height: 1.15;
    letter-spacing: -1px; margin-bottom: 16px;
}
.al-left-headline em { font-style: normal; color: var(--brand); }
.al-left-slogan {
    font-size: 13px; font-weight: 500;
    color: #555; font-style: italic;
    margin-bottom: 36px;
}

.al-features { display: flex; flex-direction: column; gap: 16px; }
.al-feature {
    display: flex; align-items: flex-start; gap: 12px;
}
.al-feature-icon {
    width: 32px; height: 32px;
    background: #161616;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.al-feature-icon svg { width: 15px; height: 15px; stroke: var(--brand); stroke-width: 2; fill: none; }
.al-feature-title { font-size: 13px; font-weight: 700; color: #ccc; margin-bottom: 2px; }
.al-feature-desc  { font-size: 12px; color: #555; line-height: 1.5; }

.al-left-footer {
    font-size: 11px; color: #333;
    position: relative;
}

/* ── Right panel ──────────────────────────────────────────────────────────── */
.al-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    background: #fff;
}

.al-form-wrap {
    width: 100%;
    max-width: 380px;
}

.al-form-heading {
    font-size: 26px; font-weight: 900;
    color: var(--text); letter-spacing: -.8px;
    margin-bottom: 6px;
}
.al-form-sub {
    font-size: 14px; color: var(--muted);
    margin-bottom: 32px;
}

/* ── Alerts ───────────────────────────────────────────────────────────────── */
.al-alert {
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 20px;
}
.al-alert.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.al-alert.error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.al-alert.warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.al-alert a { color: inherit; font-weight: 700; }

/* ── Form fields ──────────────────────────────────────────────────────────── */
.al-field { margin-bottom: 18px; }
.al-field label {
    display: block;
    font-size: 12px; font-weight: 700;
    color: var(--text); letter-spacing: .4px;
    text-transform: uppercase; margin-bottom: 7px;
}
.al-field input {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: var(--font); font-size: 15px; color: var(--text);
    background: #fff; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.al-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.al-field input::placeholder { color: #bbb; }

/* password field with show/hide toggle */
.al-pw-wrap { position: relative; }
.al-pw-wrap input { padding-right: 44px; }
.al-pw-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    color: #bbb; transition: color .2s; display: flex; align-items: center;
}
.al-pw-toggle:hover { color: var(--muted); }
.al-pw-toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; }

/* remember me */
.al-check {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; color: var(--muted); cursor: pointer;
    margin-bottom: 24px; user-select: none;
}
.al-check input[type="checkbox"] {
    width: 16px; height: 16px; border-radius: 4px;
    border: 1.5px solid var(--line); cursor: pointer;
    accent-color: var(--brand); flex-shrink: 0;
}

/* submit button */
.al-btn-submit {
    width: 100%;
    font-family: var(--font); font-size: 15px; font-weight: 800;
    color: #fff; background: var(--text);
    border: none; border-radius: var(--radius);
    padding: 14px; cursor: pointer;
    letter-spacing: -.2px;
    transition: background .2s;
    margin-bottom: 24px;
}
.al-btn-submit:hover { background: #222; }

/* ── Footer links ─────────────────────────────────────────────────────────── */
.al-links {
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.al-links a {
    font-size: 13px; color: var(--muted); font-weight: 500;
    transition: color .2s;
}
.al-links a:hover { color: var(--brand); text-decoration: none; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 780px) {
    .al-wrap { flex-direction: column; }
    .al-left {
        width: 100%; padding: 28px 24px;
        flex-direction: row; align-items: center;
        justify-content: space-between; gap: 16px;
    }
    .al-left::before { display: none; }
    .al-left-body, .al-features, .al-left-footer { display: none; }
    .al-right { padding: 36px 24px; align-items: flex-start; }
    .al-form-wrap { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Centered auth card layout — forgot / verify / reset pages
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Centered wrapper ─────────────────────────────────────────────────────── */
.ac-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: #f5f5f5;
}

.ac-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 36px 32px 28px;
}

/* ── Logo (centered) ──────────────────────────────────────────────────────── */
.ac-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    margin-bottom: 28px;
}
.ac-logo-name { font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.5px; }
.ac-logo-name span { color: var(--brand); }

/* ── Step indicator ───────────────────────────────────────────────────────── */
.ac-steps {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}
.ac-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.ac-step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
    background: #f0f0f0; color: #bbb;
    border: 1.5px solid #e0e0e0;
    transition: all .2s;
}
.ac-step span {
    font-size: 10px; font-weight: 600; color: #bbb;
    letter-spacing: .3px; text-align: center;
    white-space: nowrap;
}
.ac-step.active .ac-step-dot {
    background: var(--brand); color: #fff; border-color: var(--brand);
}
.ac-step.active span { color: var(--text); }
.ac-step.done .ac-step-dot {
    background: #f0fdf4; color: #16a34a; border-color: #bbf7d0;
}
.ac-step.done span { color: var(--muted); }

.ac-step-line {
    flex: 1; height: 1.5px; background: #e8e8e8; margin: 0 4px; margin-bottom: 18px;
}
.ac-step-line.done { background: #bbf7d0; }

/* ── Heading ──────────────────────────────────────────────────────────────── */
.ac-heading {
    font-size: 20px; font-weight: 900; letter-spacing: -.6px;
    color: var(--text); margin-bottom: 6px;
}
.ac-sub {
    font-size: 13px; color: var(--muted); margin-bottom: 24px; line-height: 1.5;
}

/* ── Info box ─────────────────────────────────────────────────────────────── */
.ac-info {
    background: #f8f9fa;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px; color: var(--muted); line-height: 1.6;
    margin-bottom: 20px;
}
.ac-info strong { color: var(--text); }

/* ── OTP input ────────────────────────────────────────────────────────────── */
.ac-otp-input {
    width: 100%;
    border: 1.5px solid var(--line); border-radius: var(--radius);
    padding: 14px;
    font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
    font-size: 28px; font-weight: 700; letter-spacing: 12px;
    text-align: center; color: var(--text);
    background: #fff; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.ac-otp-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}
.ac-otp-input::placeholder { color: #ddd; letter-spacing: 10px; font-size: 24px; }

/* ── Success state ────────────────────────────────────────────────────────── */
.ac-success-icon {
    width: 52px; height: 52px;
    background: #f0fdf4; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.ac-success-icon svg { width: 24px; height: 24px; stroke: #16a34a; stroke-width: 2.5; fill: none; }

/* ── Bottom links ─────────────────────────────────────────────────────────── */
.ac-links {
    display: flex; flex-direction: column; gap: 10px;
    padding-top: 18px; border-top: 1px solid var(--line); margin-top: 20px;
}
.ac-links a {
    font-size: 13px; color: var(--muted); font-weight: 500; transition: color .2s;
}
.ac-links a:hover { color: var(--brand); text-decoration: none; }
