.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.auth-card {
  position: relative;
  width: min(100%, 520px);
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9)),
    var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow:
    var(--shadow-card),
    var(--shadow-glow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top, rgba(1, 162, 0, 0.12), transparent 42%),
    linear-gradient(90deg, transparent, rgba(1, 162, 0, 0.08), transparent);
}

.auth-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, transparent, var(--swish-green), transparent);
}

.auth-card > * {
  position: relative;
  z-index: 1;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.auth-logo {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #ffffff;
  background: linear-gradient(135deg, var(--swish-green), var(--swish-green-dark));
  border-radius: 18px;
  box-shadow: 0 18px 36px rgba(1, 162, 0, 0.22);
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.eyebrow {
  color: var(--swish-green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin-top: 0.1rem;
  color: var(--text-main);
  font-size: clamp(1.75rem, 5vw, 2.55rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.auth-intro {
  max-width: 420px;
  margin-bottom: 1.35rem;
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form + .secondary-button,
.register-form + .secondary-button {
  margin-top: 1rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.35rem 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-neutral);
}

.auth-footnote {
  margin-top: 1rem;
  color: var(--text-soft);
  font-size: 0.82rem;
  text-align: center;
}

@media (max-width: 560px) {
  body::before {
    background-size: 32px 32px;
  }

  .auth-card {
    border-radius: 26px;
  }

  .auth-brand {
    align-items: flex-start;
  }

  .auth-logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }
}