@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --surface: #faf8f5;
  --card: #ffffff;
  --text: #1a1835;
  --muted: #6b6980;
  --border: #e4e2dd;
  --berry: #a21caf;
  --berry-soft: rgba(162, 28, 175, 0.1);
  --lime: #a3e635;
  --lime-fg: #1a1835;
  --success: #10b981;
  --danger: #ef4444;
  --font-h: "Outfit", sans-serif;
  --font-b: "Plus Jakarta Sans", sans-serif;
}

* { box-sizing: border-box; }

.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-b);
  color: var(--text);
  background:
    radial-gradient(ellipse 55% 45% at 16% 12%, rgba(162, 28, 175, 0.12), transparent),
    radial-gradient(ellipse 35% 35% at 82% 84%, rgba(163, 230, 53, 0.08), transparent),
    var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 28px;
}

.auth-shell {
  width: 100%;
  max-width: 880px;
  margin-top: clamp(36px, 8vh, 96px);
  padding: 0 16px;
}

.auth-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 22px 64px rgba(26, 24, 53, 0.1);
  padding: 30px;
}

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

.auth-title {
  text-align: center;
  margin: 0 0 18px;
  color: var(--text);
  font-family: var(--font-h);
  font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 22px;
  padding: 8px 4px;
}

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

.auth-step-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  font-family: var(--font-h);
  font-weight: 800;
  font-size: 14px;
  border: 2px solid rgba(26, 24, 53, 0.2);
  color: rgba(26, 24, 53, 0.7);
  background: #fff;
  transition: all 0.2s ease;
}

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

.auth-step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: calc(50% + 17px);
  width: calc(100% - 34px);
  height: 2px;
  background: rgba(26, 24, 53, 0.16);
  z-index: 0;
}

.auth-step:last-child::after { display: none; }

.auth-step.is-active .auth-step-dot {
  border-color: var(--berry);
  color: var(--berry);
  box-shadow: 0 0 0 4px var(--berry-soft);
}

.auth-step.is-active .auth-step-label { color: var(--text); }

.auth-step.is-done .auth-step-dot {
  border-color: #7cc60f;
  background: rgba(163, 230, 53, 0.22);
  color: #365314;
}

.auth-step.is-done::after { background: rgba(163, 230, 53, 0.6); }

.auth-field { display: grid; gap: 8px; margin-top: 12px; }

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

.auth-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(26, 24, 53, 0.14);
  padding: 13px 14px;
  font-size: 15px;
  font-family: var(--font-b);
  color: var(--text);
  outline: none;
  background: #fff;
}

.auth-input:focus {
  border-color: rgba(162, 28, 175, 0.45);
  box-shadow: 0 0 0 4px rgba(162, 28, 175, 0.14);
}

.auth-hint { font-size: 12px; color: var(--muted); }

.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: 12px;
  padding: 13px 16px;
  background: var(--berry);
  color: #fff;
  font-family: var(--font-h);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(162, 28, 175, 0.26);
}

.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(162, 28, 175, 0.34);
}

.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.auth-btn-ghost {
  background: #fff;
  color: var(--berry);
  border: 1px solid rgba(162, 28, 175, 0.3);
  box-shadow: none;
}

.auth-btn-ghost:hover {
  box-shadow: 0 0 0 4px var(--berry-soft);
}

.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.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

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

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

.auth-link {
  color: #7cc60f;
  font-weight: 800;
  text-decoration: none;
}

.auth-link:hover {
  color: #65a30d;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .auth-card { padding: 22px; }
  .auth-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-step:nth-child(2)::after,
  .auth-step:nth-child(4)::after { display: none; }
}

@media (max-width: 520px) {
  .auth-steps { grid-template-columns: 1fr; gap: 10px; }
  .auth-step {
    grid-template-columns: 34px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }
  .auth-step::after { display: none; }
}
