:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #10213a;
  background: #f5f7fa;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }

.topbar {
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #10283e;
  color: white;
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; font-weight: 700; }
.crest { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: white; color: #10283e; font-size: 12px; }
.environment { color: #cbd6e1; font-size: 14px; }
.topbar-action { border: 1px solid #60758a; border-radius: 10px; padding: 10px 15px; background: transparent; color: white; cursor: pointer; font-weight: 650; }
.topbar-action:hover { background: rgba(255, 255, 255, .08); }

main { width: min(1120px, calc(100% - 40px)); margin: 72px auto; display: grid; grid-template-columns: 1fr 480px; gap: 90px; align-items: start; }
.intro { padding-top: 48px; }
.eyebrow { margin: 0 0 14px; color: #2e66ff; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1.03; letter-spacing: -.045em; margin: 0 0 24px; }
.intro > p:last-child { max-width: 560px; color: #617087; font-size: 20px; line-height: 1.55; }

.auth-card { background: white; padding: 28px; border: 1px solid #e4e9f0; border-radius: 24px; box-shadow: 0 18px 55px rgba(16, 33, 58, .09); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f4f8; padding: 4px; border-radius: 14px; margin-bottom: 30px; }
.tab { border: 0; background: transparent; color: #617087; padding: 12px; border-radius: 10px; cursor: pointer; font-weight: 650; }
.tab.active { color: #10213a; background: white; box-shadow: 0 2px 8px rgba(16, 33, 58, .08); }
h2 { margin: 0 0 8px; font-size: 26px; }
.helper { color: #617087; line-height: 1.5; margin: 0 0 24px; }
label { display: block; font-weight: 650; margin-bottom: 8px; }
label span { color: #78869a; font-weight: 500; float: right; }
input { width: 100%; height: 58px; padding: 0 16px; border: 1px solid #dce3ec; border-radius: 14px; color: #10213a; outline: none; background: white; }
input:focus { border: 2px solid #2e66ff; padding: 0 15px; box-shadow: 0 0 0 4px #edf3ff; }
#code { font-size: 26px; letter-spacing: .25em; text-align: center; font-variant-numeric: tabular-nums; }
.primary, .secondary { width: 100%; min-height: 56px; border-radius: 14px; cursor: pointer; font-weight: 700; }
.primary { margin-top: 18px; border: 0; background: #10283e; color: white; }
.primary:hover { background: #193a56; }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { margin-top: 16px; border: 1px solid #dce3ec; color: #10213a; background: white; }

.result { display: grid; grid-template-columns: 184px 1fr; gap: 24px; align-items: center; margin-top: 28px; padding-top: 28px; border-top: 1px solid #e4e9f0; }
.qr { width: 184px; height: 184px; padding: 10px; border: 1px solid #e4e9f0; border-radius: 16px; }
.qr svg { width: 100%; height: 100%; display: block; }
.result h3 { margin: 12px 0 6px; }
.result p { color: #617087; line-height: 1.45; margin: 0; }
.status { display: inline-flex; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 750; }
.status.pending { background: #fff4db; color: #8c6100; }
.status.approved { background: #e7f6ee; color: #127b4c; }
.status.rejected, .status.expired { background: #fff0ef; color: #b43838; }
.message { margin-top: 20px; padding: 16px; border-radius: 14px; background: #e7f6ee; color: #127b4c; line-height: 1.45; }
.message.error { background: #fff0ef; color: #b43838; }
.hidden { display: none !important; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto 40px; color: #78869a; font-size: 13px; }

.account-main { display: block; margin-top: 52px; }
.account-hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 38px 0; }
.account-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-bottom: 12px; }
.account-hero > div > p:last-child { margin: 0; color: #617087; font-size: 18px; }
.verified-badge { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border-radius: 999px; padding: 10px 14px; color: #127b4c; background: #e7f6ee; font-weight: 700; }
.verified-badge::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: white; background: #127b4c; }
.account-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 24px; }
.account-card, .service-list { background: white; border: 1px solid #e4e9f0; border-radius: 20px; padding: 26px; box-shadow: 0 12px 38px rgba(16, 33, 58, .06); }
.card-heading { display: flex; align-items: center; gap: 16px; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; color: #2e66ff; background: #edf3ff; font-weight: 800; }
.card-kicker { margin: 0 0 5px; color: #2e66ff; font-size: 12px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.account-card h2 { margin: 0; }
.identity-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 0; }
.identity-data div { padding-top: 18px; border-top: 1px solid #e4e9f0; }
.identity-data dt { color: #78869a; font-size: 13px; }
.identity-data dd { margin: 7px 0 0; font-weight: 700; }
.security-list { padding: 0; margin: 24px 0; list-style: none; }
.security-list li { position: relative; padding: 10px 0 10px 30px; color: #43536a; }
.security-list li::before { content: "✓"; position: absolute; left: 0; color: #127b4c; font-weight: 800; }
.session-expiry { color: #78869a; font-size: 13px; }
.service-list { margin-top: 24px; }
.service-list > div:first-child { margin-bottom: 20px; }
.service-list h2 { margin: 0; }
.service-row { display: flex; align-items: center; justify-content: space-between; min-height: 62px; border-top: 1px solid #e4e9f0; font-weight: 650; }
.service-row span:last-child { color: #2e66ff; font-size: 28px; }

@media (max-width: 820px) {
  .environment { display: none; }
  main { margin: 36px auto; grid-template-columns: 1fr; gap: 28px; }
  .intro { padding-top: 0; }
  h1 { font-size: 46px; }
  .intro > p:last-child { font-size: 17px; }
  .account-main { display: block; }
  .account-hero { align-items: start; flex-direction: column; }
  .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 20px; }
  main { width: min(100% - 24px, 480px); }
  .auth-card { padding: 18px; border-radius: 18px; }
  .result { grid-template-columns: 1fr; }
  .qr { margin: 0 auto; }
  .identity-data { grid-template-columns: 1fr; }
}
