.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.25rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  border: 1px solid var(--nox-border);
  border-radius: 16px;
  background: var(--nox-surface);
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-card__sub {
  margin-top: 0.35rem;
  color: var(--nox-muted);
  font-size: 0.95rem;
}

.auth-form { margin-top: 1.5rem; }

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.auth-field span { font-size: 0.85rem; font-weight: 500; }

.auth-field input {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--nox-border);
  border-radius: 10px;
  background: var(--nox-bg);
  color: var(--nox-text);
  font-family: var(--font-body);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--nox-cyan);
  box-shadow: 0 0 0 3px var(--nox-cyan-dim);
}

.auth-submit { width: 100%; margin-top: 0.5rem; }

.auth-card__foot {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--nox-muted);
}

.auth-card__foot a { color: var(--nox-cyan); }

.reg-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

.reg-alert--success {
  background: rgba(61, 223, 160, 0.1);
  border: 1px solid rgba(61, 223, 160, 0.3);
  color: #3ddfa0;
}

.reg-alert--error {
  background: rgba(255, 107, 122, 0.1);
  border: 1px solid rgba(255, 107, 122, 0.3);
  color: #ff6b7a;
}

.auth-verify {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 10, 16, 0.82);
  backdrop-filter: blur(6px);
}

.auth-verify[hidden] {
  display: none !important;
}

.auth-verify__card {
  width: min(100%, 380px);
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.25);
  background: var(--nox-surface, #121a2b);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.auth-verify__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(0, 229, 255, 0.15);
  border-top-color: var(--nox-cyan, #00e5ff);
  border-radius: 50%;
  animation: authVerifySpin 0.85s linear infinite;
}

.auth-verify__title {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--nox-text, #e2e8f0);
}

.auth-verify__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.auth-verify__step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.9rem;
  color: var(--nox-muted, #8b9cb3);
  transition: color 0.25s ease;
}

.auth-verify__step--active {
  color: var(--nox-text, #e2e8f0);
}

.auth-verify__step--done {
  color: #3ddfa0;
}

.auth-verify__step--fail {
  color: #ff6b7a;
}

.auth-verify__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(139, 156, 179, 0.35);
  position: relative;
}

.auth-verify__step--active .auth-verify__icon {
  border-color: var(--nox-cyan, #00e5ff);
  border-top-color: transparent;
  animation: authVerifySpin 0.7s linear infinite;
}

.auth-verify__step--done .auth-verify__icon {
  border-color: #3ddfa0;
  background: rgba(61, 223, 160, 0.15);
  animation: none;
}

.auth-verify__step--done .auth-verify__icon::after {
  content: '';
  position: absolute;
  left: 0.28rem;
  top: 0.12rem;
  width: 0.35rem;
  height: 0.6rem;
  border: solid #3ddfa0;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.auth-verify__step--fail .auth-verify__icon {
  border-color: #ff6b7a;
  background: rgba(255, 107, 122, 0.12);
  animation: none;
}

.auth-verify__step--fail .auth-verify__icon::after {
  content: '×';
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  border: none;
  transform: translate(-50%, -58%);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  color: #ff6b7a;
}

.auth-verify--failure .auth-verify__title {
  color: #ff6b7a;
}

.auth-verify--success .auth-verify__title {
  color: #3ddfa0;
}

.auth-verify__spinner[hidden] {
  display: none;
}

@keyframes authVerifySpin {
  to { transform: rotate(360deg); }
}
