:root {
  color-scheme: dark;
  --bg: #101827;
  --panel: #172235;
  --border: #293950;
  --text: #edf3fb;
  --muted: #9cacc1;
  --accent: #63b3a5;
  --input: #101a2a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 50% 0%, #1b3044, transparent 55%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.site-header, .site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 82px; border-bottom: 1px solid #ffffff18; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 750;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #10212a;
  font-weight: 850;
}
.environment-badge {
  padding: 6px 11px;
  border: 1px solid #63b3a575;
  border-radius: 999px;
  color: #8bd3c5;
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .09em;
}
.page-shell { width: min(100% - 36px, 480px); margin: auto; padding: 65px 0 55px; }
.intro { margin-bottom: 28px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .16em; }
h1, h2 { margin: 0; line-height: 1.2; letter-spacing: -.035em; }
h1 { font-size: clamp(2.1rem, 7vw, 2.8rem); }
h2 { margin-bottom: 9px; font-size: 1.55rem; }
.intro-copy, .muted { color: var(--muted); }
.intro-copy { max-width: 410px; margin: 13px auto 0; font-size: .94rem; }
.muted { margin: 0 0 24px; font-size: .88rem; }
.portal-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(23, 34, 53, .96);
  box-shadow: 0 22px 65px #0000003d;
}
label { display: block; margin: 17px 0 7px; color: #dce6f2; font-size: .84rem; font-weight: 650; }
input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #35465e;
  border-radius: 9px;
  outline: none;
  background: var(--input);
  color: var(--text);
  font: inherit;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #63b3a526; }
button {
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: #10212a;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
button:hover { background: #78c8b8; }
button:disabled { cursor: wait; opacity: .6; }
.secondary-button { border: 1px solid #43546b; background: transparent; color: var(--text); }
.secondary-button:hover { background: #223149; }
.text-button { min-height: auto; margin-top: 17px; padding: 5px; background: transparent; color: #91cfc2; font-size: .86rem; }
.text-button:hover { background: transparent; color: #b4e7dd; }
.notice { margin-bottom: 22px; padding: 12px 14px; border: 1px solid #456b66; border-radius: 9px; background: #1a3537; color: #c2e8df; font-size: .86rem; }
.notice.error { border-color: #805454; background: #39272d; color: #f0a0a0; }
.account-details { display: grid; gap: 5px; padding: 17px; border: 1px solid var(--border); border-radius: 10px; background: var(--input); }
.detail-label { margin-top: 8px; color: var(--muted); font-size: .76rem; }
.detail-label:first-child { margin-top: 0; }
.account-details strong { overflow-wrap: anywhere; font-size: .92rem; }
.security-note { margin: 20px 8px 0; color: var(--muted); font-size: .76rem; text-align: center; }
.site-footer { min-height: 68px; margin-top: auto; border-top: 1px solid #ffffff18; color: #8292a8; font-size: .76rem; }
[hidden] { display: none !important; }
@media (max-width: 520px) {
  .site-header, .site-footer { width: calc(100% - 28px); }
  .site-header { min-height: 70px; }
  .environment-badge { padding: 5px 8px; font-size: .61rem; }
  .page-shell { padding: 42px 0; }
  .portal-card { padding: 23px 19px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
