* {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: #16171d;
  color: #0f172a;
}

.auth-stage {
  min-height: 100vh;
  background: #f0eedb;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-stage::before,
.auth-stage::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.26;
}

.auth-stage::before {
  left: 24px;
  top: 34px;
  background: #d8cef3;
}

.auth-stage::after {
  right: 30px;
  bottom: 38px;
  background: #cdbef2;
}

.auth-card {
  width: min(360px, 92%);
  background: #f6f6f8;
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 12px 28px rgba(37, 36, 61, 0.14);
  position: relative;
  z-index: 1;
}

.auth-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #6d28d9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.auth-card h1 {
  margin: 0;
  text-align: center;
  font-size: 34px;
  color: #1f2937;
}

.auth-subtitle {
  margin: 8px 0 18px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form label {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}

.auth-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 11px 14px;
  font-size: 14px;
  color: #1f2937;
  background: #f3f4f6;
}

.auth-form input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-btn {
  margin-top: 8px;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 12px 14px;
  background: linear-gradient(90deg, #6d28d9, #7c3aed);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn.secondary {
  background: #ffffff;
  border: 2px solid #c4b5fd;
  color: #6d28d9;
  text-align: center;
  text-decoration: none;
}

.auth-message {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.auth-message.error {
  color: #b91c1c;
}

.auth-message.success {
  color: #166534;
}

.auth-footnote {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #6b7280;
}

.auth-footnote a {
  color: #6d28d9;
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 720px) {
  .auth-title {
    font-size: 28px;
  }

  .auth-stage {
    min-height: 520px;
  }

  .auth-card {
    width: min(380px, 96%);
    padding: 22px 16px 18px;
  }

  .auth-card h1 {
    font-size: 30px;
  }

  .auth-split {
    grid-template-columns: 1fr;
  }
}
