/* The account pages (templates/account/): wordmark, title, one card. Remi's tokens. */
.page-auth { background: var(--canvas); }
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 40px 16px; gap: 18px; }
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.auth-brand { text-decoration: none; margin-bottom: 10px; }
.auth-brand .wordmark { font-size: 30px; }
.auth-sticker { width: 64px; height: 64px; }
.auth-title { font-family: var(--font-serif); font-size: 28px; font-weight: 600; color: var(--ink); margin: 4px 0 0; }
.auth-sub { margin: 0; font-size: 14.5px; min-height: 1em; }
.auth-card { width: 100%; max-width: 420px; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.auth-below { font-size: 14px; color: var(--muted); text-align: center; }
.auth-below a, .auth-card a:not(.btn) { color: var(--teal); font-weight: 600; }
.auth-terms { font-size: 13px; color: var(--muted); max-width: 380px; margin: 0 auto 10px; line-height: 1.5; }
.auth-legal { font-size: 12.5px; color: var(--muted-2); }
.auth-legal a { color: var(--slate); }

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .input { width: 100%; font-size: 16px; }   /* 16px: no zoom-on-focus on iOS */
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-link { font-size: 12.5px; }
.btn--auth { width: 100%; height: 46px; font-size: 15px; }
.input[aria-invalid="true"] { border-color: var(--coral); }
.field-errors { display: flex; flex-direction: column; gap: 3px; }
.field-error { font-size: 13px; color: var(--coral-deep); }
.auth-error { background: #FDECE7; border: 1px solid #F6C9BC; color: var(--coral-deep); border-radius: var(--r-xs);
              padding: 10px 12px; font-size: 13.5px; }
.auth-note { background: var(--surface); border-radius: var(--r-xs); padding: 9px 12px; font-size: 13.5px; color: var(--slate); }
.auth-note--ok { background: var(--teal-tint); color: var(--teal-ink); }
.auth-info { margin: 0; line-height: 1.55; color: var(--body-c); font-size: 14.5px; }
.auth-done-title { margin: 0; font-family: var(--font-serif); font-size: 20px; color: var(--teal-ink); }

.auth-social { display: flex; flex-direction: column; gap: 10px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--divider); }

.auth-verify, .auth-verify-wait, .auth-verify-done { display: flex; flex-direction: column; gap: 14px; }
.auth-wait { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.auth-wait-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-2); animation: auth-pulse 1.4s ease-in-out 2; }
@keyframes auth-pulse { 50% { transform: scale(1.6); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .auth-wait-dot { animation: none; } }
.auth-resend { font-size: 13.5px; color: var(--muted); }
.is-busy { opacity: .7; pointer-events: none; }

@media (max-width: 420px) { .auth-card { padding: 20px; } }
