:root {
  color-scheme: dark;
  --bg: #060b12;
  --surface: #0d1826;
  --surface-raised: #122238;
  --surface-soft: #1a2e45;
  --blue: #2e6ca4;
  --blue-hover: #3e80bd;
  --blue-light: #7fb2e0;
  --text: #eaf1f8;
  --muted: #8fa3b8;
  --border: rgba(255, 255, 255, 0.08);
  --warning: #f3c477;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(46, 108, 164, 0.2), transparent 70%),
    var(--bg);
  line-height: 1.55;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 18px;
}

.shell-wide { padding-block: 48px; }

.card {
  width: min(100%, 900px);
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(18, 34, 56, .96), rgba(13, 24, 38, .98));
  box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 80px -32px rgba(46,108,164,.45);
}

.login-card { max-width: 480px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 34px;
  font-size: 1.03rem;
  font-weight: 750;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(127,178,224,.32);
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--blue-hover), #245784);
  box-shadow: 0 8px 26px rgba(46,108,164,.28);
  font-size: .78rem;
  letter-spacing: -.03em;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue-light);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2 { margin-top: 0; letter-spacing: -.035em; line-height: 1.12; }
h1 { margin-bottom: 14px; font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-bottom: 10px; font-size: clamp(1.25rem, 3vw, 1.55rem); }
.lede { max-width: 650px; margin: 0 0 30px; color: var(--muted); }

.auth-form { display: grid; gap: 11px; }
label { color: #c3d2e0; font-size: .86rem; font-weight: 650; }
input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(143,163,184,.28);
  border-radius: 11px;
  outline: none;
  color: var(--text);
  background: rgba(6,11,18,.72);
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
input:focus-visible { border-color: var(--blue-light); box-shadow: 0 0 0 4px rgba(127,178,224,.14); }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s, background-color .18s, border-color .18s;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(127,178,224,.6); outline-offset: 3px; }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 28px rgba(46,108,164,.25); }
.button-primary:hover { background: var(--blue-hover); }
.auth-form .button { margin-top: 8px; width: 100%; }
.button-quiet { min-height: 40px; color: #c3d2e0; border-color: var(--border); background: rgba(255,255,255,.035); }
.button-quiet:hover { border-color: rgba(127,178,224,.32); background: rgba(255,255,255,.065); }

.trust-note {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}
.trust-note span { color: #70c59a; margin-right: 5px; }

.alert { border: 1px solid; border-radius: 12px; }
.alert-error { margin: -10px 0 20px; padding: 11px 13px; color: #ffd6d6; border-color: rgba(248,113,113,.25); background: rgba(127,29,29,.22); }
.alert-warning { display: grid; gap: 3px; margin-top: 18px; padding: 13px 15px; color: #dbc8a5; border-color: rgba(243,196,119,.22); background: rgba(113,76,20,.15); font-size: .83rem; }
.alert-warning strong { color: var(--warning); }

.download-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.file-list { margin: 8px 0 0; padding: 0; list-style: none; }
.file-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(6,11,18,.42);
}
.file-icon { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: var(--blue-light); background: rgba(46,108,164,.16); font-size: 1.4rem; }
.file-type { margin: 0 0 5px; color: var(--blue-light); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.checksum { display: grid; gap: 5px; margin: 16px 0 0; color: var(--muted); font-size: .72rem; }
.checksum span { font-weight: 700; letter-spacing: .08em; }
.checksum code { overflow-wrap: anywhere; color: #c3d2e0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.download-button { align-self: center; white-space: nowrap; }

.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; color: var(--muted); font-size: .78rem; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #70c59a; box-shadow: 0 0 12px rgba(112,197,154,.65); }

@media (max-width: 680px) {
  .card { border-radius: 19px; }
  .download-header { display: block; }
  .download-header form { margin: -14px 0 26px; }
  .file-card { grid-template-columns: auto minmax(0, 1fr); padding: 19px; }
  .download-button { grid-column: 1 / -1; width: 100%; }
  .page-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
