:root {
  color-scheme: dark;
  --bg: #100d10;
  --panel: #191418;
  --panel-soft: #21191f;
  --border: #38252d;
  --red: #ef343f;
  --red-bright: #ff4b55;
  --text: #f6f0f2;
  --muted: #ad9da4;
  --green: #76e0a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 16% 12%, rgba(180, 25, 49, .16), transparent 34rem),
    radial-gradient(ellipse at 85% 78%, rgba(111, 21, 43, .12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }

.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,75,85,.7); border-radius: 12px; background: linear-gradient(145deg, #531621, #211217); color: white; font-size: 18px; font-weight: 900; letter-spacing: -1px; box-shadow: 0 0 28px rgba(239,52,63,.12); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { font-size: 14px; letter-spacing: 2px; }
.brand-copy small { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.test-label { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 13px; color: #d8c5cb; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px rgba(239,52,63,.7); }

.login-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 420px); align-items: center; gap: clamp(36px, 8vw, 100px); padding: 76px 0 84px; }
.eyebrow { margin: 0 0 18px; color: var(--red-bright); font-size: 11px; font-weight: 800; letter-spacing: 2.2px; }
h1 { max-width: 560px; margin: 0; font-size: clamp(34px, 4.5vw, 56px); line-height: 1.07; letter-spacing: -2px; }
h1 span { color: var(--red-bright); }
.lead { max-width: 520px; margin: 22px 0 34px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.steps { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: 16px; }
.step-number { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--red-bright); font-size: 11px; font-weight: 900; }
.steps strong, .steps small { display: block; }
.steps strong { padding: 2px 0 6px; font-size: 14px; }
.steps small { max-width: 370px; color: var(--muted); font-size: 13px; line-height: 1.7; }
code { border: 1px solid #53303a; border-radius: 5px; padding: 2px 5px; background: #24171d; color: #ff9ba1; font-size: .95em; }

.login-card { padding: 34px; border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(150deg, rgba(36,27,33,.98), rgba(21,16,20,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.3), 0 0 60px rgba(180,25,49,.05); }
.card-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 23px; border-radius: 12px; background: rgba(239,52,63,.12); color: var(--red-bright); font-size: 25px; }
h2 { margin: 0; font-size: 23px; letter-spacing: -.5px; }
.card-description { margin: 12px 0 27px; color: var(--muted); font-size: 13px; line-height: 1.7; }
label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 750; }
input { width: 100%; height: 54px; border: 1px solid #493039; border-radius: 9px; outline: none; background: #100d10; color: white; padding: 0 15px; font-size: 18px; font-weight: 800; letter-spacing: 5px; text-align: center; text-transform: uppercase; transition: border-color .16s, box-shadow .16s; }
input::placeholder { color: #624750; letter-spacing: 4px; }
input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,52,63,.12); }
.field-hint { margin: 10px 0 20px; color: #9b8990; font-size: 11px; line-height: 1.6; }
#submit-button, .secondary-button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; border-radius: 9px; padding: 0 16px; background: var(--red); color: white; font-size: 13px; font-weight: 850; transition: background .16s, transform .16s; }
#submit-button:hover:not(:disabled) { background: var(--red-bright); transform: translateY(-1px); }
#submit-button span:last-child { font-size: 21px; }
.status { min-height: 40px; margin: 17px 0 0; color: #b9a9af; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.status.success { color: var(--green); }
.status.error { color: #ff7c85; }
.card-footer { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.07); color: #786770; font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.footer-lock { color: var(--red); font-size: 9px; }
.account-panel { text-align: center; }
.account-avatar { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 15px; border: 1px solid rgba(118,224,160,.35); border-radius: 50%; background: rgba(118,224,160,.09); color: var(--green); font-size: 25px; }
.account-status { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.account-panel h3 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.account-panel .card-description { margin-bottom: 20px; }
.secondary-button { justify-content: center; border: 1px solid #50303a; background: #2a1c23; }
.secondary-button:hover:not(:disabled) { background: #3a222c; }
.site-footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.07); color: #7f6f76; font-size: 11px; }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 28px, 520px); }
  .topbar { min-height: 80px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 8px; }
  .test-label { padding: 8px 10px; font-size: 8px; letter-spacing: .8px; }
  .login-layout { grid-template-columns: 1fr; gap: 35px; padding: 48px 0 52px; }
  h1 { font-size: clamp(35px, 10vw, 48px); }
  .lead { margin: 17px 0 25px; font-size: 14px; }
  .login-card { padding: 25px 21px; }
  .site-footer { flex-direction: column; gap: 8px; }
}
