/* VoxBridge AI — Auth pages
   Design tokens: see PROJECT_STATUS.md / commit notes for the brief.
   Split-screen layout: dark brand panel (waveform motif) + light form panel. */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #F7F7F5;
    --surface: #FFFFFF;
    --ink: #14151A;
    --ink-soft: #585A66;
    --primary: #322F92;
    --primary-dark: #211F63;
    --accent: #17B8A6;
    --danger: #C4392B;
    --border: #E3E3DF;
    --radius: 10px;
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
}

a { color: var(--primary); }

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: 100vh;
}

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 200px; }
}

/* ---- Left brand panel ---- */
.auth-brand {
    background: radial-gradient(ellipse at top left, #3833A8 0%, var(--primary-dark) 55%, #17153F 100%);
    color: #EFEFF7;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-brand-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    color: #FFFFFF;
}

.auth-brand-copy {
    max-width: 360px;
}

.auth-brand-copy h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 38px);
    line-height: 1.15;
    margin: 0 0 14px;
    letter-spacing: -0.02em;
}

.auth-brand-copy p {
    color: #C7C6E4;
    font-size: 15px;
    margin: 0;
}

/* Abstract waveform motif — a handful of bars stand in for "speech",
   with a few picked out in teal to represent the translated signal. */
.waveform {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 64px;
    margin-top: 36px;
}

.waveform span {
    display: block;
    width: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.22);
}

.waveform span.live { background: var(--accent); }

/* ---- Right form panel ---- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

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

.auth-form-wrap h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}

.auth-form-wrap > p.lede {
    color: var(--ink-soft);
    margin: 0 0 32px;
    font-size: 15px;
}

.field { margin-bottom: 20px; }

.field label {
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--ink);
}

.field input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    padding: 10px 2px;
    border: none;
    border-bottom: 1.5px solid var(--border);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s ease;
}

.field input:focus {
    border-bottom-color: var(--primary);
}

.field input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.field-error {
    display: none;
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
}

.field.has-error input { border-bottom-color: var(--danger); }
.field.has-error .field-error { display: block; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--ink-soft);
}

.checkbox-row input { width: auto; }

button.btn-primary {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 13px 18px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(50,47,146,0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

button.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(50,47,146,0.34); transform: translateY(-1px); }
button.btn-primary:disabled { background: #A9A8CC; cursor: default; box-shadow: none; transform: none; }

.auth-links {
    margin-top: 22px;
    font-size: 14px;
    color: var(--ink-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-links a { text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.alert {
    display: none;
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

.alert.show { display: block; }
.alert-error { background: #FBEAE7; color: #8A281D; }
.alert-success { background: #E4F7F3; color: #0E6656; }

.result-panel {
    text-align: left;
}

.result-panel .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 20px;
}

.icon.ok { background: #E4F7F3; color: #0E6656; }
.icon.fail { background: #FBEAE7; color: #8A281D; }
