/* Account pages (/signup, /login, /reset, /auth/action): the form card of the signup page */
body { min-height: 100vh; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; max-width: 1080px; margin: 0 auto; }
.top a.sub { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }

/* Single card in the middle (login, reset, action) */
main.solo { max-width: 472px; margin: 0 auto; padding: 24px 16px 72px; }
@media (min-width: 600px) { main.solo { padding-top: 48px; } }

.card { background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: 30px 28px 26px; box-shadow: 0 16px 44px rgba(154,112,40,0.1); }
@media (max-width: 480px) { .card { padding: 24px 18px 22px; } }
.card h1, .card h2 { font-family: var(--serif); font-weight: normal; font-size: 22px; letter-spacing: 0.06em; text-align: center; }
.card .lead { text-align: center; font-size: 13px; color: var(--muted); margin: 6px 0 22px; line-height: 1.8; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gold); font-size: 13px; padding: 8px; cursor: pointer; }
.field.bad input { border-color: var(--danger); }
.err, .field > .err { display: none; color: var(--danger); font-size: 12.5px; font-weight: normal; margin: 4px 0 0; }
.field.bad .err { display: block; }
.submit { width: 100%; font-size: 15px; min-height: 50px; }
.form-msg { margin-top: 12px; font-size: 13px; text-align: center; color: var(--danger); min-height: 1em; line-height: 1.7; }
.form-msg.ok { color: var(--ok); }
.alt { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.9; }
.forgot { display: block; text-align: right; font-size: 13px; margin: -6px 0 16px; }

/* Result panels (sent / done / bad link) */
.done { text-align: center; }
.done .mark { width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fbf3e4; color: var(--gold); }
.done .mark.bad { background: #fbeaea; color: var(--danger); }
.done .mark svg { width: 26px; height: 26px; }
.done h1 { font-size: 20px; letter-spacing: 0.04em; margin-bottom: 10px; }
.done p { font-size: 14px; color: var(--muted); line-height: 1.9; margin-bottom: 18px; overflow-wrap: anywhere; }
.done p b { color: var(--ink); font-weight: 600; }
.done .btn { width: 100%; }
.dev-note { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: #f3f0ea; border: 1px dashed var(--border-2); font-size: 12.5px; color: var(--muted); line-height: 1.7; text-align: left; overflow-wrap: anywhere; }
