:root {
  --theme-color-1: rgba(255,110,1,1);
  --auth-bg1: #f6f7fb;
  --auth-bg2: #f6f7fb;
  --auth-card: #ffffff;
  --auth-text: #0f172a;
  --auth-muted: #64748b;
  --auth-border: rgba(15, 23, 42, 0.12);
  --auth-primary: rgba(255,110,1,1);
  --auth-primary-2: rgba(255,110,1,0.90);
  --auth-success: #10b981;
  --auth-danger: #ef4444;
}

* { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(255,110,1,0.10), transparent 55%),
    radial-gradient(900px 520px at 80% 30%, rgba(15, 23, 42, 0.06), transparent 55%),
    linear-gradient(180deg, var(--auth-bg1), var(--auth-bg2));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-shell { width: 100%; max-width: 700px; }

.auth-card {
  background: var(--auth-card);
  border-radius: 14px;
  border: 1px solid var(--auth-border);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.12);
  padding: 28px;
}

.auth-card-wide { max-width: 700px; }

.auth-title {
  text-align: center;
  margin: 0 0 18px 0;
  color: var(--auth-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 18px 0;
  padding: 10px 6px;
}

.auth-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  position: relative;
  text-align: center;
}

.auth-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  border: 2px solid rgba(15, 23, 42, 0.22);
  color: rgba(15, 23, 42, 0.7);
  background: #fff;
}

.auth-step-label {
  font-size: 13px;
  color: var(--auth-muted);
  font-weight: 700;
}

.auth-step.is-active .auth-step-dot {
  border-color: var(--auth-primary-2);
  color: var(--auth-primary-2);
}

.auth-step.is-done .auth-step-dot {
  border-color: var(--auth-success);
  background: rgba(16, 185, 129, 0.10);
  color: var(--auth-success);
}

.auth-step::after {
  content: "";
  position: absolute;
  top: 14px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: rgba(15, 23, 42, 0.18);
}

.auth-step:last-child::after { display: none; }
.auth-step.is-done::after { background: rgba(16, 185, 129, 0.55); }

.auth-field { display: grid; gap: 8px; margin-top: 12px; }
.auth-label { font-size: 12px; color: var(--auth-muted); font-weight: 700; }

.auth-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}

.auth-input:focus {
  border-color: rgba(255,110,1, 0.55);
  box-shadow: 0 0 0 4px rgba(255,110,1, 0.12);
}

.auth-row { display: flex; justify-content: center; margin-top: 18px; }
.auth-row-split { justify-content: space-between; gap: 12px; }

.auth-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, var(--auth-primary), var(--auth-primary-2));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
}

.auth-btn:hover { filter: brightness(0.98); }

.auth-btn:disabled { opacity: .75; cursor: not-allowed; }

.auth-btn-ghost {
  background: #fff;
  color: var(--auth-primary-2);
  border: 1px solid rgba(255,110,1, 0.35);
}

.auth-error, .auth-success {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.auth-error {
  background: rgba(239, 68, 68, 0.10);
  color: var(--auth-danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-success {
  background: rgba(16, 185, 129, 0.10);
  color: var(--auth-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.auth-foot {
  margin-top: 18px;
  text-align: center;
  color: var(--auth-muted);
  font-size: 13px;
}

.auth-link { color: var(--theme-color-1); font-weight: 800; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .auth-steps { grid-template-columns: 1fr; gap: 8px; }
  .auth-step { grid-template-columns: 28px 1fr; justify-items: start; align-items: center; }
  .auth-step::after { display: none; }
  .auth-row-split { flex-direction: column; }
}
