:root {
  --auth-cyan: #39e5e5;
  --auth-blue: #17b7dc;
  --auth-ink: #f7fbff;
  --auth-muted: #91a7b2;
  --auth-panel: rgba(12, 30, 41, 0.94);
  --auth-field: #0a202c;
  --auth-line: rgba(102, 229, 235, 0.18);
}

.auth-card {
  isolation: isolate;
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22% -35% auto 28%;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 220, 229, 0.11), transparent 68%);
  pointer-events: none;
}

.auth-input-wrap {
  position: relative;
  display: block;
}

.auth-card .auth-input-wrap input {
  width: 100%;
  padding-inline: 48px 16px;
}

.auth-input-icon {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 17px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #42dce5;
  font-size: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-form-note {
  margin: -2px 0 2px;
  color: var(--auth-muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.auth-inline-action {
  padding: 0;
  border: 0;
  color: var(--auth-cyan);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.otp-grid {
  position: relative;
  display: block;
  margin: 4px 0 8px;
}

.auth-card .otp-grid input {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 0 0 0 0.75em;
  border-color: var(--auth-line);
  border-radius: 14px;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.75em;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(16.666% - 1px), rgba(96, 228, 234, 0.12) calc(16.666% - 1px) 16.666%);
}

.auth-card input:focus-visible,
.auth-card button:focus-visible,
.auth-card select:focus-visible {
  outline: 3px solid rgba(57, 229, 229, 0.28);
  outline-offset: 2px;
}

.password-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.password-rules span {
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(72, 220, 225, 0.14);
  border-radius: 999px;
  color: #86a5af;
  background: rgba(8, 27, 37, 0.7);
  font-size: 0.68rem;
}

.auth-form.is-entering {
  animation: auth-screen-enter 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes auth-screen-enter {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

html[data-theme="light"] {
  --auth-ink: #102a55;
  --auth-muted: #637e91;
  --auth-panel: rgba(255, 255, 255, 0.95);
  --auth-field: #f0f7f9;
  --auth-line: rgba(22, 146, 196, 0.2);
}

html[data-theme="light"] .password-rules span {
  color: #536f86;
  background: #edf5f8;
}

html[data-theme="light"] .auth-input-icon {
  color: #0a9ecb;
}

@media (max-width: 380px) {
  .auth-card .otp-grid input { min-height: 52px; border-radius: 11px; }
}

@media (min-width: 760px) {
  .auth-gate { width: min(100%, 520px); }
  .auth-card { padding: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-form.is-entering { animation: none; }
}
