:root {
  color-scheme: light dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #eef5ff;
  color: #101828;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(32 148 230 / 18%), transparent 38%),
    radial-gradient(circle at 90% 85%, rgb(87 79 255 / 16%), transparent 40%),
    #eef5ff;
}

.test-access-shell {
  display: grid;
  min-height: 100dvh;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  place-items: center;
}

.test-access-card {
  width: min(100%, 480px);
  padding: clamp(24px, 6vw, 42px);
  border: 1px solid rgb(22 83 145 / 13%);
  border-radius: 28px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 70px rgb(24 63 104 / 16%);
}

.test-access-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
}

.test-access-logo {
  display: grid;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #148dd7, #2664df);
  color: #fff;
  place-items: center;
}

.test-access-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e4f3ff;
  color: #0769a8;
  font-size: 12px;
  letter-spacing: .08em;
}

h1 {
  margin: 34px 0 12px;
  font-size: clamp(29px, 8vw, 40px);
  line-height: 1.08;
}

.test-access-lead,
.test-access-note {
  color: #5c667a;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

label {
  margin-top: 8px;
  font-weight: 700;
}

input,
button {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  font: inherit;
}

input {
  border: 1px solid #c9d4e4;
  padding: 0 16px;
  background: #fff;
  color: #101828;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid rgb(25 146 222 / 35%);
  outline-offset: 2px;
}

button {
  margin-top: 12px;
  border: 0;
  padding: 0 20px;
  background: #1598e3;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.test-access-error {
  margin: 8px 0 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff0f0;
  color: #b42318;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.test-access-note {
  margin: 22px 0 0;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #080d17;
    color: #f5f8ff;
  }

  body {
    background:
      radial-gradient(circle at 15% 10%, rgb(24 141 222 / 22%), transparent 38%),
      radial-gradient(circle at 90% 85%, rgb(87 79 255 / 20%), transparent 40%),
      #080d17;
  }

  .test-access-card {
    border-color: rgb(151 185 227 / 18%);
    background: rgb(18 25 40 / 94%);
    box-shadow: 0 24px 70px rgb(0 0 0 / 42%);
  }

  .test-access-badge {
    background: #15334b;
    color: #75c9ff;
  }

  .test-access-lead,
  .test-access-note {
    color: #aeb9cc;
  }

  input {
    border-color: #3b465b;
    background: #121a2a;
    color: #f5f8ff;
  }

  .test-access-error {
    background: #3b1d25;
    color: #ffb4b4;
  }
}
