/* TNAP portals: shared styles. Minimal, quiet, executive. */
:root {
  --maroon: #4A0509;
  --maroon-dark: #3A0307;
  --gold: #C99A00;
  --ink: #2B0A0C;
  --muted: #6A5B5A;
  --line: #8E7F7C;
  --paper: #FAF8F6;
  --error: #8F1F1F;
  --error-bg: #FBEDEC;
  --ok: #17573A;
  --ok-bg: #E9F4EE;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.5 var(--sans); }
h1 { font: 500 40px/1.1 var(--serif); letter-spacing: -0.015em; margin: 0; text-align: center; }
p { margin: 0; }
a { color: var(--maroon); }

.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.col { width: 100%; max-width: 360px; }
.crest { display: block; margin: 0 auto 36px; width: 68px; height: auto; }
.rule { width: 32px; height: 2px; background: var(--gold); margin: 18px auto 14px; border: 0; }
.lede { text-align: center; color: var(--muted); margin-bottom: 36px; }

label { display: block; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.field { margin-bottom: 26px; }
input[type=text], input[type=email], input[type=password], input[type=tel] {
  width: 100%; height: 46px; padding: 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; font-size: 16px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #B07A00; outline-offset: 3px; }
input:focus { border-bottom-color: var(--maroon); }
.code-input { height: 56px; font-size: 28px; letter-spacing: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw .toggle {
  position: absolute; right: 0; top: 1px; height: 44px; min-width: 56px;
  border: 0; background: transparent; color: var(--maroon); font: inherit; font-weight: 600; cursor: pointer;
}

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 50px; margin-top: 10px;
  border: 0; border-radius: 2px; background: var(--maroon); color: #fff;
  font: 500 15px var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--maroon-dark); }
.btn-quiet { background: transparent; color: var(--maroon); margin-top: 12px; height: 44px; }
.btn-quiet:hover { background: transparent; text-decoration: underline; }
.note { margin-top: 20px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.alert { margin-bottom: 24px; padding: 12px 14px; border-left: 3px solid var(--error); background: var(--error-bg); color: var(--error); font-size: 14px; }
.alert-ok { border-left-color: var(--ok); background: var(--ok-bg); color: var(--ok); }

.secret { font: 500 18px/1.6 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .08em; word-break: break-all; text-align: center; padding: 14px 8px; border: 1px solid #E3D9D6; background: #fff; }
.steps { margin: 0 0 28px; padding-left: 20px; color: var(--muted); }
.steps li { margin-bottom: 8px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.codes li { font: 500 15px ui-monospace, Menlo, Consolas, monospace; padding: 10px; border: 1px solid #E3D9D6; background: #fff; text-align: center; }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 32px; color: var(--muted); font-size: 13.5px; }
.motto { font: italic 400 15px var(--serif); }

.app { max-width: 720px; margin: 0 auto; padding: 8px 0; }
.app h1 { text-align: left; font-size: 34px; }
.app .lede { text-align: left; margin-bottom: 24px; }
.meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

@media (max-width: 480px) {
  h1 { font-size: 36px; }
  .foot { padding: 16px 24px; }
}

.alert-top { margin-top: 24px; }
.form-gap { margin-top: 28px; }
.btn-inline { justify-content: flex-start; width: auto; padding: 0; }
