/* Log in / create an account. */
#auth { max-width: 380px; margin: 10vh auto 0; padding: var(--space-6); }
#auth h1 { font-size: var(--text-2xl); margin: 0 0 var(--space-1); }
#auth .sub { margin: 0 0 var(--space-4); }
#auth form { display: grid; gap: var(--space-3); }
#auth label { display: grid; gap: var(--space-1); color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
#auth input { min-height: 36px; }
#auth button[type=submit] { width: 100%; min-height: 36px; }
#auth .alt { text-align: center; font-size: var(--text-sm); color: var(--muted); margin: 0; }
#auth .forgot { justify-self: end; font-size: var(--text-sm); margin-top: calc(-1 * var(--space-2)); }
#auth-msg { color: var(--err); margin: 0; }
#auth-msg:empty { display: none; }
/* Buttons that read as links ("Forgot password?", "Create an account"). */
#auth button.link { background: none; color: var(--accent-text); padding: 0; min-height: 0; font-weight: 400; text-decoration: underline; }
#auth button.link:hover { color: var(--text); }
#auth .alt button.link { font-size: inherit; }
/* The other states of the card: forgot password, check your email, choose a password, dead link. */
#auth #forgot-form, #auth #link-form, #auth #link-fields { display: grid; gap: var(--space-3); }
#auth p { overflow-wrap: anywhere; }
#auth #sent-block > p, #auth #dead-block > p { margin: 0 0 var(--space-3); }
#auth .note { margin: 0; }
#auth .check-row { display: flex; align-items: center; gap: 0; font-weight: 400; color: var(--text); font-size: var(--text-md); }
#auth #link-other p { margin: 0 0 var(--space-2); }
#auth #link-other .row { justify-content: flex-start; flex-wrap: wrap; }
#auth #link-other button, #auth #dead-block .row button { width: auto; min-height: var(--control-h); }
#auth-msg, #forgot-msg, #link-msg { color: var(--err); margin: 0; }
#forgot-msg:empty, #link-msg:empty { display: none; }
/* A confirmation (account deleted, password set): not an error. */
#auth-note { color: var(--ok-text); margin: 0 0 var(--space-3); }
#auth-note:empty { display: none; }
#auth .legal { margin: var(--space-4) 0 0; text-align: center; font-size: var(--text-sm); color: var(--muted); }
