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

.auth-container {
  max-width: 440px;
  margin: 0 auto;
}

.auth-brand {
  text-align: left;
}

.auth-title {
  font-family: var(--sa-font-display, inherit);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  color: var(--sa-muted, var(--bs-secondary-color));
}

.auth-stack {
  display: grid;
  gap: 1rem;
}

.auth-card {
  border: 1px solid var(--sa-line, var(--bs-border-color));
  border-radius: 1rem;
  background: color-mix(in srgb, var(--sa-paper, var(--bs-body-bg)) 92%, #fff);
  padding: 1.25rem;
}

.auth-card-primary {
  background:
    linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(3, 105, 161, 0.06)),
    color-mix(in srgb, var(--sa-paper, var(--bs-body-bg)) 92%, #fff);
  border-color: color-mix(in srgb, var(--sa-accent, #0f766e) 28%, var(--sa-line, var(--bs-border-color)));
}

.auth-card-title {
  font-family: var(--sa-font-display, inherit);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.auth-card-lede {
  color: var(--sa-muted, var(--bs-secondary-color));
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.auth-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3rem;
  border-radius: 0.75rem;
  font-weight: 600;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
}

.auth-google-btn:hover {
  background: #f8f9fa;
  border-color: #c6c6c6;
  color: #1f1f1f;
}

[data-bs-theme="dark"] .auth-google-btn {
  background: #fff;
  color: #1f1f1f;
}

.auth-google-logo {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.auth-google-missing {
  font-size: 0.9rem;
  color: var(--sa-muted, var(--bs-secondary-color));
}

.auth-google-missing code {
  font-size: 0.8rem;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--sa-muted, var(--bs-secondary-color));
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--sa-line, var(--bs-border-color));
}

.auth-form .form-label {
  font-weight: 600;
}

.auth-form .form-control {
  border-radius: 0.7rem;
}

.auth-form .btn {
  border-radius: 0.7rem;
  font-weight: 600;
}

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

.auth-links {
  display: grid;
  gap: 0.45rem;
}

.auth-links a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--sa-accent, var(--bs-primary));
}

.auth-links a:hover {
  text-decoration: underline;
}
