/* Auth + legal pages. Builds on style.css tokens (--blue, --bar, --ui …). */
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: 20px; font-weight: 500; }
.brand:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 10px; }

.auth { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px 40px; }
.auth-shell { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 460px; background: #fff; border: 1.5px solid #cfd6ea; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 34px rgba(50,77,199,.09); }

.auth-side { background: linear-gradient(135deg, #324dc7, #4a63dc); color: #fff; padding: 44px 40px; display: flex; flex-direction: column; }
.auth-side .eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #dfe5ff; }
.auth-side .pitch { margin: 0 0 26px; font-family: var(--serif); font-size: 30px; line-height: 1.25; font-weight: 600; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.auth-side li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; color: #eef1ff; }
.auth-side li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.18); }
.auth-side li::after { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.auth-card { padding: 38px 40px 32px; min-height: 420px; }
.auth-card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 500; }
.auth-card .sub { margin: 0 0 24px; color: #4b5163; font-size: 15px; line-height: 1.5; }
.auth-card .sub b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.loading { display: flex; align-items: center; gap: 10px; color: #555; font-size: 15px; padding-top: 8px; }

.field { margin-bottom: 18px; }
.field label, .lbl-row label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; color: #222; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lbl-row a { font-size: 13.5px; color: var(--blue); font-weight: 500; text-decoration: none; }
.lbl-row a:hover { text-decoration: underline; }
.field input { width: 100%; height: 46px; padding: 0 14px; font: 400 16px var(--ui); color: var(--ink); background: #fff; border: 1.5px solid #b9c2dc; border-radius: 10px; transition: border-color .12s, box-shadow .12s; }
.field input:hover { border-color: #8f9aba; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,77,199,.18); }
.field input[aria-invalid="true"] { border-color: #c62828; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(198,40,40,.15); }
.field input:disabled { background: #f5f6fa; }
.field-err { margin: 7px 0 0; font-size: 13px; line-height: 1.4; color: #c62828; }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.eye { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #5b6279; display: flex; align-items: center; justify-content: center; padding: 0; }
.eye:hover { background: #f1f3fb; color: var(--ink); }
.eye:focus-visible { outline: 2px solid var(--blue); }

.rules { list-style: none; margin: -8px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.rules li { font-size: 12.5px; color: #5b6279; background: #f1f3fb; border-radius: 12px; padding: 4px 10px 4px 24px; position: relative; transition: .12s; }
.rules li::before { content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #b9c2dc; }
.rules li.met { background: #effaf2; color: #1e6b33; }
.rules li.met::before { width: 7px; height: 4px; border-radius: 0; background: none; border: solid #1e8a3c; border-width: 0 0 2px 2px; transform: rotate(-45deg); margin-top: -4px; }

.consent-block { margin: 4px 0 20px; }
.consent-block .check:last-of-type { margin-bottom: 0; }
.consent-block .field-err { margin-top: 10px; }

.pill.block { width: 100%; height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.pill:disabled { opacity: .6; cursor: default; }
.pill:focus-visible, .gbtn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.gbtn { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #fff; color: #1f1f1f; border: 1.5px solid #b9c2dc; border-radius: 24px; font: 500 15.5px var(--ui); transition: .12s; }
.gbtn:hover:not(:disabled) { border-color: var(--blue); background: #f7f8fe; }
.gbtn:disabled { opacity: .6; cursor: default; }

.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #6b7280; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #dde2f0; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: -6px 0 20px; }
.alert[hidden] { display: none; }
.alert.err { background: #fdf0f0; border: 1px solid #e9c0c0; color: #8e1c1c; }
.alert.ok { background: #effaf2; border: 1px solid #9fd5ae; color: #1e5a2d; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--blue); text-decoration: underline; }
.linkbtn:disabled { color: #777; text-decoration: none; cursor: default; }
.alert .linkbtn { display: inline; margin-left: 2px; }

.switch { margin: 24px 0 0; text-align: center; font-size: 14.5px; color: #4b5163; }
.switch a { color: var(--blue); font-weight: 500; text-decoration: none; }
.switch a:hover { text-decoration: underline; }
.hint { font-size: 14px; color: #4b5163; line-height: 1.5; }
.hint a { color: var(--blue); }
.mail-ico { width: 56px; height: 56px; border-radius: 50%; background: #eef1fc; color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 18px; }

.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .7s linear infinite; flex: none; }
.spin.dark { border-color: #cfd6ea; border-top-color: var(--blue); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 2s; } }

.noscript { text-align: center; padding: 20px; color: #8e1c1c; }

@media (max-width: 880px) {
  .auth { padding: 24px 16px 32px; }
  .auth-shell { grid-template-columns: 1fr; max-width: 480px; }
  .auth-side { display: none; }
  .auth-card { padding: 30px 22px 26px; min-height: 0; }
}

/* ---------- legal documents ---------- */
.legal-wrap { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 36px 20px 64px; }
.legal { background: #fff; border: 1.5px solid #cfd6ea; border-radius: 16px; padding: 40px 48px; line-height: 1.7; font-size: 15.5px; color: #222; }
.legal h1 { font-size: 30px; font-weight: 500; margin: 0 0 4px; }
.legal .meta { color: #5b6279; font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 19px; font-weight: 500; margin: 32px 0 8px; color: var(--ink); }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); }
.legal .summary { background: #f1f3fb; border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
.legal .summary p:last-child { margin: 0; }
.legal-nav { display: flex; gap: 18px; font-size: 14px; margin-bottom: 14px; }
.legal-nav a { color: var(--blue); font-weight: 500; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .legal { padding: 26px 20px; } .legal h1 { font-size: 25px; } }
