* { box-sizing: border-box; }
:root { color-scheme: dark; font: 16px/1.5 system-ui, sans-serif; color: #f1f5fa; background: #0c1116; }
body { margin: 0; min-height: 100vh; }
header, main { width: min(calc(100% - 40px), 1096px); margin-inline: auto; }
header { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #36404a; }
header img { display: block; width: clamp(136px, 18vw, 200px); height: auto; }
a, button { color: #c4e3f6; text-underline-offset: .21em; }
a:hover, button:hover { color: white; }
button, input { font: inherit; }
button { cursor: pointer; }
.site-link { font-size: .875rem; text-decoration: none; padding-block: 12px; }
main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 455px); align-items: start; gap: clamp(32px, 8vw, 100px); padding-block: clamp(50px, 12vh, 145px); }
.intro { padding-top: 16px; }
.eyebrow { color: #b9d7ee; font: 600 .74rem/1.5 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
h1, h2, p { margin: 0; }
h1 { font: 500 clamp(3.1rem, 6.4vw, 5.9rem)/.98 Georgia, serif; letter-spacing: -.058em; }
#account-intro { color: #b1becb; max-width: 34ch; margin-top: 20px; font-size: 1.06rem; }
.card { padding: clamp(24px, 3.5vw, 40px); background: #141c24; border: 1px solid #3a4651; border-radius: 16px; box-shadow: 0 18px 48px #0002; min-width: 0; }
h2 { font-size: clamp(1.55rem, 3.3vw, 2.2rem); line-height: 1.12; letter-spacing: -.04em; overflow-wrap: anywhere; }
.card h2 + form { margin-top: 24px; }
form { display: grid; gap: 7px; }
input { width: 100%; min-width: 0; min-height: 47px; padding: 10px 13px; background: #0b1117; border: 1px solid #52606b; border-radius: 7px; color: inherit; }
label { font-size: .91rem; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.label-row a { font-size: .81rem; }
.primary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 47px; padding: 10px 16px; background: #c2def2; border: 0; border-radius: 7px; color: #0a141c; font-weight: 680; text-decoration: none; margin-top: 14px; }
.primary:hover { background: #e0eff9; color: #0a141c; }
.primary:disabled { opacity: .7; cursor: wait; }
.identity { margin: 8px 0 24px; overflow-wrap: anywhere; color: #b6c3cf; }
.card-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid #34424e; font-size: .88rem; }
.card-foot button, #retry { padding: 6px 0; border: 0; background: transparent; font: inherit; text-decoration: underline; }
#auth-status { margin-top: 15px; color: #c1d3e2; font-size: .9rem; }
#auth-status:empty, [hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b6e0ff; outline-offset: 3px; }
@media (max-width: 750px) {
  main { width: min(calc(100% - 36px), 480px); grid-template-columns: minmax(0, 1fr); gap: 25px; padding-block: 32px 50px; }
  .intro { padding: 0; }
  header { min-height: 65px; }
  #account-intro { margin-top: 12px; }
}
