/* Lookout account flow. Shared geometry follows the selected auth reference;
   the original system font and vector brand assets stay authoritative. */
.auth-page { min-height: 100svh; display: flex; flex-direction: column; }
.auth-page ::selection { background: #eacbbd; color: #242724; }
.auth-page input { caret-color: var(--accent); min-width: 0; width: 100%; font-size: 16px; }
.auth-page input::placeholder { color: #707772; opacity: 1; }
.auth-page a { text-underline-offset: .2em; }
.auth-page .button { transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 160ms ease-out; }
.auth-page .button:hover { filter: none; background: #984528; }
.auth-page .button.secondary:hover { background: #f4efe8; }
.auth-page .button:disabled { opacity: .7; }
.auth-page .button[aria-busy=true]::before { content: ""; width: 15px; height: 15px; flex: 0 0 auto; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: auth-spin 700ms linear infinite; }
.skip-link { position: fixed; z-index: 10; top: 12px; left: 16px; transform: translateY(-150%); padding: 10px 14px; background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { transform: none; }
main.auth-layout { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-block: clamp(40px, 7.4vh, 80px); min-height: auto; }
.auth-card { width: min(536px, 100%); padding: 38px 36px 34px; background: #fffdf9; border: 1px solid #e5e0d9; border-radius: 16px; box-shadow: 0 2px 12px #30291f06; }
.auth-card h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.auth-card h1:focus { outline: none; }
.auth-lead { margin: 0; color: #535d55; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-lead strong { color: var(--text); }
.auth-card > .note { margin: 0 0 22px; overflow-wrap: anywhere; }
.auth-form { display: grid; gap: 22px; margin-top: 28px; }
.auth-field { display: grid; gap: 8px; min-width: 0; }
.auth-field label { font-size: 14px; color: #505a52; display: block; }
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > svg { position: absolute; width: 19px; height: 19px; left: 16px; color: #68716b; pointer-events: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.auth-input input { padding-inline: 46px 48px; border-color: #dbdcd7; border-radius: 12px; height: 52px; }
.auth-field > input { border-radius: 12px; height: 52px; }
.auth-field input[aria-invalid=true] { border-color: #a33829; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; color: #68716b; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.password-toggle:hover { color: var(--text); background: #f4f1eb; }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.field-hint, .field-error { font-size: 14px; line-height: 1.45; }
.field-hint { color: var(--muted); }
.field-error { color: #9d2727; }
.auth-form > .button { min-height: 52px; margin-top: 2px; }
.auth-links { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.auth-bottom { margin: 26px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.auth-back { display: inline-block; margin-top: 26px; font-size: 14px; }
.auth-back::before { content: "←"; margin-right: 8px; }
#resend { margin-top: 20px; }
.auth-state-mark { margin-bottom: 10px; }
#app-consent .button, #verification-sent .button { min-height: 52px; }
#app-consent p, #verification-sent p { margin: 0; overflow-wrap: anywhere; }
#app-consent .auth-back, #verification-sent .auth-back { margin-top: 6px; text-align: center; }
.auth-reassurance { margin-top: 48px; max-width: 340px; text-align: center; }
.auth-reassurance p { margin: 14px 0 0; font-size: 14px; color: #59625c; }
.auth-reassurance p + p { margin-top: 4px; color: var(--muted); }
.auth-mark-rule { display: flex; align-items: center; justify-content: center; gap: 26px; }
.auth-mark-rule::before, .auth-mark-rule::after { content: ""; width: 106px; height: 1px; background: #ded9d2; }
.auth-page footer.site { margin-top: auto; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) {
  .auth-page header.site .wrap { height: 76px; }
  .auth-page nav.site a:not(#nav-account) { display: none; }
  main.auth-layout { padding-block: 30px 42px; }
  .auth-card { padding: 28px 22px; border-radius: 14px; }
  .auth-card h1 { font-size: 29px; }
  .auth-links { display: grid; gap: 16px; }
  .auth-form { gap: 20px; margin-top: 24px; }
  .auth-reassurance { margin-top: 32px; }
  .auth-page footer.site .wrap { padding-block: 22px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-page .button { transition: none; }
  .auth-page .button[aria-busy=true]::before { animation: none; border-right-color: currentColor; opacity: .65; }
}
