/* Public auth screens: signup, verify, login, forgot, reset. */
.auth-main { flex: 1; padding: var(--s5) 0 var(--s6); display: flex; flex-direction: column; }
.auth-head { margin-bottom: var(--s6); }
.auth-sub { font-size: 16px; color: var(--ink-2); margin-top: var(--s2); }
.auth-sub b { color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.auth-form { display: flex; flex-direction: column; gap: var(--s5); }
.auth-form .btn-lg { margin-top: var(--s1); }
.auth-alt { text-align: center; margin-top: var(--s5); font-size: 15px; color: var(--muted); }
.auth-alt a, .text-link { color: var(--ink); font-weight: 700; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.auth-foot { font-size: 12.5px; color: var(--muted); text-align: center; padding: var(--s4) 0 calc(var(--s5) + env(safe-area-inset-bottom)); }
.auth-foot a { color: var(--muted); }
.auth-msg:empty { display: none; }
.auth-msg { margin-bottom: var(--s5); }

.topbar-link { font-weight: 700; font-size: 15px; text-decoration: none; height: 44px; padding: 0 12px; margin-right: -12px; display: inline-flex; align-items: center; border-radius: 10px; }
.topbar-link:hover { background: var(--surface-2); }

.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row .text-link { font-size: 14px; min-height: 0; }
.forgot-link { align-self: flex-end; font-size: 14px; margin-top: calc(var(--s3) * -1); }

/* status views (check email, verified, link expired) */
.auth-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--s5); background: var(--surface); border: 2px solid var(--line); }
.auth-icon .icon { width: 26px; height: 26px; }
.auth-icon.is-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.auth-icon.is-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.auth-icon.is-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }

.loading-block { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding-top: var(--s5); }
.loading-block .spin { width: 28px; height: 28px; border-width: 3px; }
