* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  background: #101319;
  color: #fff;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.card {
  width: 100%;
  max-width: 360px;
  background: linear-gradient(165deg, rgba(30, 34, 44, 0.92), rgba(18, 21, 27, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.65), 0 3px 12px rgba(0, 0, 0, 0.25);
}
h1 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
}
.subtitle {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 22px;
}
label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8f99;
  margin: 14px 0 6px;
}
input {
  width: 100%;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}
input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}
input.code-input {
  letter-spacing: 0.4em;
  font-size: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
button {
  width: 100%;
  margin-top: 20px;
  border: none;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(22, 163, 74, 0.65);
  transition: background 0.2s ease, transform 0.2s ease;
}
button:hover { background: #15893f; }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.6; cursor: default; transform: none; }
.back-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.back-link:hover { background: none; color: #fff; }
.error {
  margin-top: 14px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.16);
  color: #fca5a5;
  font-size: 12.5px;
  display: none;
}
.error.is-visible { display: block; }
.hint {
  margin: 0 0 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
form { display: none; }
form.is-active { display: block; }
