.auth-wrapper {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.auth-card {
  width: min(100%, 460px);
  padding: 2rem;
  border: 1px solid var(--fo-border);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(10, 19, 38, 0.94), rgba(7, 14, 27, 0.98));
  box-shadow: var(--fo-shadow);
}

.auth-card__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--fo-highlight);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-logo {
  width: min(72%, 250px);
  margin-bottom: 0.9rem;
}

.auth-card h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
}

.auth-card p {
  margin: 0.65rem 0 0;
  color: var(--fo-text-soft);
  line-height: 1.6;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  color: var(--fo-text-soft);
  font-size: 0.92rem;
}

.auth-footer a,
.auth-check a,
.back-link {
  color: var(--fo-highlight);
  font-weight: 700;
  text-decoration: none;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
  color: var(--fo-text-soft);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.auth-error {
  min-height: 1.25rem;
  margin-top: 1rem;
  color: #ffc3d1;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .auth-footer {
    flex-direction: column;
    align-items: center;
  }
}
