/* sign-in and sign-up (/, /login, /register): the logo, one quiet card, nothing else. Tokens from vaset.css. */
body.auth-min {
  min-height: 100vh; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px 14px; box-sizing: border-box; color: var(--ink);
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(201, 147, 131, .16), transparent 70%),
    radial-gradient(55% 45% at 10% 100%, rgba(54, 79, 107, .10), transparent 70%),
    var(--brand-tint, #f3f6f9);
}
.auth-wrap { width: min(400px, 100%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auth-logo { display: block; width: 190px; height: auto; }
.auth-box {
  width: 100%; box-sizing: border-box; padding: 24px 26px 22px; border-radius: 22px;
  background: var(--surface, #fff); border: 1px solid rgba(29, 43, 57, .07);
  box-shadow: 0 1px 2px rgba(29, 43, 57, .04), 0 24px 60px -32px rgba(29, 43, 57, .35);
}
.auth-box h1 { margin: 0 0 14px; font-size: 1.35rem; font-weight: 800; line-height: 1.5; }
.auth-lead { margin: -8px 0 18px; color: var(--ink-2); font-size: .92rem; line-height: 1.9; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.auth-form[hidden] { display: none; }
.auth-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: .9rem; font-weight: 700; color: var(--ink); }
.auth-field small { font-weight: 400; color: var(--ink-3); font-size: .78rem; line-height: 1.7; }
.auth-field input {
  width: 100%; box-sizing: border-box; height: 46px; min-height: 46px; margin: 0; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line, #e6e2dc); background: #fbfcfd; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-field input:hover { border-color: var(--brand-line, #c8d4e1); }
.auth-field input:focus { outline: none; border-color: var(--brand, #364f6b); background: #fff; box-shadow: 0 0 0 4px rgba(54, 79, 107, .12); }
.auth-field input[aria-invalid="true"] { border-color: var(--err); }
.auth-pass { position: relative; display: block; }
.auth-pass input { padding-inline-end: 14px; padding-left: 46px; }
.auth-eye {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); cursor: pointer;
}
.auth-eye svg { width: 19px; height: 19px; }
.auth-eye:hover, .auth-eye[aria-pressed="true"] { color: var(--brand); background: var(--brand-tint); }
.auth-eye:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(54, 79, 107, .22); }
.auth-code { text-align: center; letter-spacing: .5em; font-size: 1.3rem !important; }
.btn.auth-go { width: 100%; height: 48px; min-height: 48px; margin-top: 4px; border-radius: 12px; font-size: 1rem; font-weight: 700; justify-content: center; }
.auth-note { margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; font-size: .88rem; line-height: 1.8; background: var(--brand-tint); color: var(--ink-2); }
.auth-note.error, .auth-note.err { background: var(--err-soft); color: var(--err); }
.auth-note.ok { background: var(--ok-soft); color: var(--ok); }
.auth-alt { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e6e2dc); }
.auth-alt > summary { list-style: none; cursor: pointer; text-align: center; color: var(--brand); font-size: .92rem; font-weight: 600; }
.auth-alt > summary::-webkit-details-marker { display: none; }
.auth-alt > summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-alt[open] > summary { margin-bottom: 14px; color: var(--ink-2); }
.auth-again { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; }
.auth-link { font: inherit; font-size: .88rem; background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; text-decoration: none; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-switch { margin: 0; font-size: .92rem; color: var(--ink-2); }
.auth-switch a { color: var(--brand); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth-credit { margin-top: 14px; opacity: .8; }
.field-error { display: block; color: var(--err); font-size: .78rem; font-weight: 500; line-height: 1.5; }
@media (max-width: 440px) { .auth-box { padding: 24px 18px 20px; border-radius: 18px; } .auth-logo { width: 170px; } }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth-label-row .auth-link { font-size: .8rem; font-weight: 500; }
