body {
    margin: 0;
    min-height: 100vh;
    background: var(--paper);
    color: var(--ink-2);
    font-family: Switzer, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}
.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    box-sizing: border-box;
}
.auth .fs-wordmark { margin-bottom: 28px; font-size: 22px; }
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--panel);
    border: 1px solid var(--rule);
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 28px 24px 24px;
    box-sizing: border-box;
}
.auth-card h1 {
    margin: 0;
    font-family: Switzer, sans-serif;
    font-weight: 600;
    font-size: 28px;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ink);
}
.auth-card .sub {
    margin: 8px 0 0;
    color: var(--ink-2);
    font-size: 15px;
}
.auth-card form { margin-top: 22px; }
.field { margin-top: 14px; }
.field label, .choice-label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}
.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
}
.auth-input::placeholder { color: var(--ink-2); }
.auth-input:focus {
    outline: 2px solid var(--ember);
    outline-offset: 1px;
    border-color: var(--ember);
}
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-between label { margin: 0; }
/* Password + its Show/Hide control share one border so the pair reads as a
   single field rather than a field with a stray button beside it. */
.password-row {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--panel);
    overflow: hidden;
}
.password-row .auth-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.password-row .auth-input:focus { outline: none; }
.password-row:focus-within {
    outline: 2px solid var(--ember);
    outline-offset: 1px;
    border-color: var(--ember);
}
.password-reveal {
    flex: 0 0 auto;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid var(--rule);
    background: transparent;
    color: var(--ember-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}
.password-reveal:hover { text-decoration: underline; }
.auth-btn {
    width: 100%;
    margin-top: 18px;
    padding: 14px 20px;
    border: 0;
    border-radius: 6px;
    background: var(--ember);
    color: var(--paper);
    font-family: Switzer, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}
.auth-btn:hover { background: var(--ember-hover); }
.auth-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.auth-link { color: var(--ember-text); font-weight: 500; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.fine { margin: 16px 0 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.trial-line { margin: 12px 0 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.legal-line { margin: 12px 0 0; text-align: center; color: var(--ink-2); font-size: 12.5px; line-height: 1.6; }
.legal-line a { color: var(--ink-2); text-decoration: underline; }
.auth-foot { margin: 18px 0 0; color: var(--ink-2); font-size: 13px; }
.auth-foot a { color: var(--ink-2); text-decoration: none; }
.auth-foot a:hover { color: var(--ember-text); }
.auth-alert { margin-top: 16px; padding: 10px 12px; border-radius: 6px; font-size: 14px; }
.auth-alert-error { background: #FDECEC; color: var(--danger); border: 1px solid #F0C9C9; }
.auth-alert-success { background: #E7F3EC; color: var(--success); border: 1px solid #C9E2D2; }
.progress-label { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; }
.progress {
    height: 3px;
    background: var(--rule);
    border-radius: 99px;
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    background: var(--ember);
    width: 50%;
}
[hidden] { display: none !important; }
.choice { display: flex; flex-direction: column; gap: 8px; }
.choice label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--ink);
}
.choice label:has(input:checked) { border-color: var(--ember); }
.choice input { margin-top: 3px; accent-color: var(--ember); }
.reveal { background: none; border: 0; padding: 0; color: var(--ember-text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.help { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.back-btn {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 0;
    color: var(--ember-text);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--ember); }
.req { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-2); font-size: 13px; }
.req i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); display: inline-block; }
.req.met { color: var(--success); }
.req.met i { background: var(--success); }
@media (max-width: 420px) {
    .names { grid-template-columns: 1fr; }
}
