:root {
  --bg: #030815;
  --panel: #07152c;
  --line: rgba(88, 163, 255, .28);
  --text: #f3f8ff;
  --muted: #91a7c3;
  --blue: #1684ff;
  --cyan: #33c5ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 82% 10%, rgba(17, 124, 255, .18), transparent 30%),
    radial-gradient(circle at 14% 76%, rgba(0, 185, 255, .08), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

body { min-height: 100vh; }

.access-gate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  line-height: 1.6;
}

.access-card {
  width: min(36rem, 100%);
  padding: clamp(22px, 5vw, 36px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 29, 61, .92), rgba(5, 15, 34, .96)), var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
}

.access-brand {
  display: block;
  width: min(190px, 100%);
  margin-bottom: 26px;
}

.access-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.access-kicker {
  margin: 0 0 10px;
  color: #8fcaff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.access-card h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.access-intro {
  margin: 0 0 22px;
  color: #9fb1ca;
}

.access-card label {
  display: block;
  margin-bottom: 8px;
  color: #a9c6e6;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.access-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 10px;
}

.access-row input,
.access-row button {
  min-width: 0;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font: inherit;
}

.access-row input {
  padding: 10px 14px;
  background: #040d1e;
  color: #fff;
}

.access-row input:focus {
  border-color: #44b9ff;
  box-shadow: 0 0 0 3px rgba(51, 197, 255, .12);
}

.access-row button {
  padding: 8px 12px;
  border-color: rgba(116, 204, 255, .42);
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #071526;
  font-size: .9375rem;
  font-weight: 760;
  line-height: 1.25;
  cursor: pointer;
}

.access-row button:hover:not(:disabled) {
  background: linear-gradient(135deg, #419bff, #66d4ff);
}

.access-row button:disabled {
  opacity: .55;
  cursor: wait;
}

.access-card :focus-visible {
  outline: 2px solid #87d5ff;
  outline-offset: 4px;
}

.access-message {
  display: block;
  min-height: 1.5em;
  margin-top: 10px;
  color: #ff9fa9;
  font-size: .875rem;
}

.access-loading {
  display: none;
  margin-top: 10px;
  color: #8dc7f5;
  font-size: .875rem;
}

.access-footer {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
}

.access-note {
  margin: 0 0 8px;
  color: var(--muted);
}

.access-back,
.access-card .download {
  color: #b8e4ff;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .18em;
}

@media (max-width: 480px) {
  .access-row { grid-template-columns: minmax(0, 1fr); }
}
