:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f9;
  color: #17191d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(44, 226, 205, 0.12), transparent 29rem),
    radial-gradient(circle at 89% 84%, rgba(91, 73, 246, 0.13), transparent 31rem),
    #f4f6f9;
}

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

.gate-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid #d8dee8;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(20, 27, 45, 0.12);
}

.gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gate-brand__icon {
  display: block;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.gate-brand__wordmark {
  display: block;
  width: 91px;
  height: auto;
}

.eyebrow {
  margin: 34px 0 8px;
  color: #697181;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.intro { margin: 11px 0 28px; color: #697181; font-size: 14px; line-height: 1.5; }

label {
  display: block;
  margin: 16px 0 7px;
  font-size: 12px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd3df;
  border-radius: 11px;
  background: #fff;
  color: #17191d;
  font: inherit;
  outline: none;
}

input:focus { border-color: #5645dd; box-shadow: 0 0 0 3px rgba(86, 69, 221, 0.12); }

.primary-button,
.back-button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  margin-top: 18px;
  color: #fff;
  background: linear-gradient(100deg, #005c56, #302576);
}

.primary-button:disabled { opacity: 0.56; cursor: wait; }
.back-button { margin-top: 12px; padding: 0 19px; background: #eef1f5; color: #323845; }
.message { min-height: 20px; margin: 14px 0 0; color: #b32727; font-size: 13px; line-height: 1.45; }

@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; background: #0d1119; color: #f5f7fb; }
  body { background: radial-gradient(circle at 10% 10%, rgba(0, 153, 141, 0.18), transparent 29rem), radial-gradient(circle at 90% 80%, rgba(78, 54, 204, 0.2), transparent 31rem), #0d1119; }
  .gate-card { border-color: #30394a; background: rgba(21, 27, 39, 0.96); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
  .eyebrow, .intro { color: #aeb6c6; }
  input { border-color: #465064; background: #111722; color: #f5f7fb; }
  .back-button { background: #283142; color: #f5f7fb; }
  .message { color: #ff8f8f; }
  .gate-brand__wordmark { filter: brightness(0) invert(1); }
}
