:root {
  color-scheme: light;
  --ink: #112b3c;
  --navy: #102738;
  --body: #405462;
  --muted: #566775;
  --gold: #a8864e;
  --border: #c4cfd4;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #f2f5f5;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; margin: 0; }
.masthead { background: var(--navy); border-bottom: 2px solid var(--gold); color: white; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 75rem; margin: auto; padding: 1rem clamp(1.15rem,5vw,4.5rem); }
.brand { display: inline-flex; align-items: center; gap: .68rem; color: white; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.08rem; letter-spacing: .18em; line-height: 1.2; }
.brand small { margin-top: .18rem; color: #e3e9ed; font-size: .78rem; }
.monogram { width: 2.65rem; height: 2.65rem; display: grid; align-items: center; justify-content: center; grid-auto-flow: column; border: 1px solid #c2a773; font: 700 2rem/1 Georgia, serif; }
.monogram span { color: #d4b780; }
.website-link { color: #edf1f3; text-underline-offset: .3em; font-size: .94rem; }
main { flex: 1; display: grid; align-items: center; justify-items: center; padding: clamp(2rem,7vh,5rem) 1rem; }
.card { width: min(100%, 30.5rem); padding: clamp(1.5rem,5vw,2.8rem); border: 1px solid #d7e0e1; border-top: 3px solid var(--gold); border-radius: .6rem; background: #fff; box-shadow: 0 10px 38px rgba(16,39,56,.055); }
.eyebrow { margin: 0 0 .65rem; color: #765b2b; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; font-size: .83rem; }
h1 { color: var(--ink); margin: 0; font-size: clamp(1.9rem,4.4vw,2.45rem); line-height: 1.12; letter-spacing: -.045em; }
.intro { color: var(--body); margin: .85rem 0 1.65rem; line-height: 1.6; }
form { display: grid; gap: 1.16rem; }
.field { display: grid; gap: .43rem; }
label { color: var(--ink); font-weight: 650; font-size: .95rem; }
input { border: 1px solid #8496a0; border-radius: .35rem; width: 100%; min-width: 0; min-height: 2.95rem; padding: .67rem .80rem; background: white; color: var(--ink); font: inherit; }
.password-line { position: relative; }
.password-line input { padding-right: 4.5rem; }
.password-line button { position: absolute; right: .25rem; top: .2rem; bottom: .2rem; min-width: 3.7rem; background: transparent; border: 0; border-radius: .25rem; font-size: .88rem; color: var(--ink); }
button { cursor: pointer; font: inherit; }
button:disabled { cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b28638; outline-offset: 3px; }
.text-button { width: fit-content; min-height: 2.1rem; padding: .2rem 0; border: 0; color: #1b4762; background: transparent; text-decoration: underline; text-underline-offset: .22em; font-weight: 600; font-size: .94rem; }
.text-button:hover, .website-link:hover { text-decoration-thickness: 2px; }
#forgot { margin: -.55rem 0 -.5rem; justify-self: end; }
.primary { width: 100%; padding: .8rem 1rem; min-height: 3rem; border: 0; border-radius: .35rem; background: var(--navy); color: white; font-weight: 650; }
.primary:hover { background: #22465e; }
.primary:disabled { background: #475a66; }
.access-note { margin: 1.55rem 0 0; padding-top: 1.15rem; border-top: 1px solid #dde5e6; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.back { margin-top: .9rem; }
.message { margin: 0 0 1.15rem; padding: .78rem .9rem; border: 1px solid #accbbb; border-radius: .3rem; background: #eef6f1; color: #244936; font-size: .94rem; line-height: 1.5; }
.message.error { border-color: #c6a8a6; color: #6e2827; background: #fcf3f2; }
footer { padding: 1.25rem 1rem; text-align: center; color: var(--muted); font-size: .83rem; }
@media (max-width: 400px) {
  .masthead-inner { gap: .65rem; }
  .website-link { font-size: .83rem; }
}
