:root {
  color-scheme: dark;
  --bg: #050b15;
  --card: #0b1525;
  --field: #07101f;
  --line: #263753;
  --text: #f6f8ff;
  --muted: #a9b5ca;
  --blue: #2f69ff;
  --violet: #7b43ef;
  --pink: #d826c2;
  --danger: #ff9baf;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font:
    16px/1.45 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(47, 105, 255, 0.18),
      transparent 32rem
    ),
    radial-gradient(
      circle at 92% 88%,
      rgba(216, 38, 194, 0.14),
      transparent 28rem
    ),
    var(--bg);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.auth-shell {
  width: min(100% - 32px, 500px);
  margin: auto;
  padding: max(28px, env(safe-area-inset-top)) 0
    max(40px, env(safe-area-inset-bottom));
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 24px;
}
.brand {
  justify-self: center;
  color: transparent;
  background: linear-gradient(100deg, #3190ff, #814df2 52%, #ee2db9);
  background-clip: text;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.auth-card {
  background: rgba(11, 21, 37, 0.94);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.steps li {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: #71809a;
  font-size: 12px;
}
.steps li span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #33445f;
  border-radius: 50%;
  font-weight: 750;
}
.steps li.active {
  color: #c9b7ff;
}
.steps li.active span {
  color: white;
  border-color: #915cff;
  background: #5630bd;
}
.view {
  display: none;
}
.view.active {
  display: block;
  animation: enter 0.2s ease-out;
}
.heading {
  margin-bottom: 22px;
}
.eyebrow {
  margin: 0 0 8px;
  color: #aa83ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.heading h1 {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.heading > p:last-child {
  color: var(--muted);
  margin: 0;
}
.heading strong {
  color: var(--text);
  overflow-wrap: anywhere;
}
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 16px;
}
.mode-tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 10px 8px;
  min-height: 44px;
}
.mode-tabs button[aria-selected="true"] {
  background: #18253a;
  color: white;
  font-weight: 750;
}
.providers {
  display: grid;
  gap: 10px;
}
.provider {
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111d30;
  color: white;
  font-weight: 700;
  padding: 10px 14px;
}
.provider:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.provider small {
  margin-left: 7px;
  color: #afbbd0;
  font-weight: 550;
}
.google-mark {
  display: inline-grid;
  place-items: center;
  margin-right: 10px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: white;
  color: #3269df;
  font-weight: 900;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #75849d;
  font-size: 12px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
form {
  display: grid;
  gap: 16px;
}
label,
legend {
  font-size: 14px;
  font-weight: 700;
}
input,
select {
  display: block;
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--field);
  color: white;
  padding: 11px 13px;
  font-size: 16px;
}
select {
  appearance: auto;
}
input::placeholder {
  color: #71809a;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a67cff;
  outline-offset: 3px;
}
.primary {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(
    105deg,
    var(--blue),
    var(--violet) 56%,
    var(--pink)
  );
  color: white;
  font-weight: 800;
  padding: 12px 16px;
  margin-top: 4px;
  box-shadow: 0 10px 28px rgba(82, 61, 220, 0.27);
}
.primary:disabled {
  opacity: 0.6;
  cursor: wait;
}
.text-button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: #b99aff;
  min-height: 44px;
  margin-top: 7px;
}
.reset-password {
  margin-top: -7px;
}
.mail-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #201942;
  color: #c4acff;
  font-size: 28px;
  margin-bottom: 22px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 2px 0 0;
}
.interest-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 10px;
}
.interest-grid label {
  cursor: pointer;
}
.interest-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.interest-grid span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: #c7d0e1;
  padding: 10px 13px;
  min-height: 44px;
}
.interest-grid input:checked + span {
  border-color: #9f72ff;
  background: #211a40;
  color: #d7c7ff;
}
.interest-grid input:focus-visible + span {
  outline: 3px solid #a67cff;
  outline-offset: 3px;
}
.legal-consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.legal-consent input {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 2px 0 0;
  accent-color: var(--violet);
}
.legal-consent a,
.rules-note a {
  color: #bea7ff;
}
.rules-note {
  margin: -7px 0 0;
  color: #8e9bb1;
  font-size: 13px;
}
.status {
  border: 1px solid #5b4165;
  border-radius: 13px;
  background: #281a2e;
  color: #ffd1de;
  padding: 12px 14px;
  margin: 18px 0 0;
  font-size: 14px;
}
.status.success {
  border-color: #315a58;
  background: #102b2b;
  color: #a8efe2;
}
@keyframes enter {
  from {
    opacity: 0.45;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .view.active {
    animation: none;
  }
}
@media (max-width: 520px) {
  .auth-shell {
    width: 100%;
    padding: 0;
    display: block;
  }
  .brand {
    display: block;
    text-align: center;
    padding: 24px 0 18px;
  }
  .auth-card {
    border-radius: 28px 28px 0 0;
    min-height: calc(100svh - 72px);
    padding: 24px 20px;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }
  .steps {
    margin-bottom: 26px;
  }
}
@media (max-width: 360px) {
  .auth-card {
    padding-inline: 16px;
  }
  .steps li {
    font-size: 11px;
  }
  .heading h1 {
    font-size: 26px;
  }
}
