.auth-page {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 2.5rem;
}

body.auth-portal {
  background: #fff8e1;
  color: #1f1a10;
}

.auth-portal .auth-navbar {
  background: #b8860b !important;
}

.auth-portal .btn-primary {
  --bs-btn-bg: #b8860b;
  --bs-btn-border-color: #b8860b;
  --bs-btn-hover-bg: #9a6f08;
  --bs-btn-hover-border-color: #9a6f08;
  --bs-btn-active-bg: #9a6f08;
  --bs-btn-active-border-color: #9a6f08;
  --bs-btn-disabled-bg: #b8860b;
  --bs-btn-disabled-border-color: #b8860b;
}

.auth-portal .auth-toggle a {
  color: #b8860b;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e5c76b;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 2rem 1.5rem;
  position: relative;
}

.auth-brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #b8860b;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.auth-hero-headline {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.15;
}

.auth-hero-tagline {
  color: #6b7280;
  font-size: 1rem;
  line-height: 1.45;
}

.auth-mode-hint {
  color: #9ca3af;
  font-size: 0.875rem;
}

.auth-sso-label {
  margin-top: 0.25rem;
}

.auth-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.35rem;
}

.auth-subtext {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 1rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 4px;
  color: #3c4043;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-google:hover {
  background: #f8f9fa;
  color: #202124;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
}

.btn-google:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0;
}

.auth-divider.auth-section-gap {
  margin: 1.5rem 0 1.35rem;
}

.auth-section-gap-top {
  margin-top: 1.35rem;
}

.auth-field {
  margin-bottom: 0.75rem;
}

.auth-field-hint {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #9ca3af;
}

.auth-required {
  color: #dc2626;
  font-weight: 700;
}

.auth-optional-row {
  margin-bottom: 0.75rem;
}

.auth-password-wrap {
  position: relative;
}

.auth-password-wrap .form-control {
  padding-right: 4.25rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #b8860b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
  line-height: 1;
  cursor: pointer;
}

.auth-password-toggle:focus-visible {
  outline: 2px solid #b8860b;
  outline-offset: 2px;
  border-radius: 4px;
}

.auth-password-checklist {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  color: #9ca3af;
}

.auth-password-checklist li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.2rem;
}

.auth-password-checklist li::before {
  content: "○";
  position: absolute;
  left: 0;
  color: #d1d5db;
}

.auth-password-checklist li.is-met {
  color: #6b6356;
}

.auth-password-checklist li.is-met::before {
  content: "✓";
  color: #b8860b;
  font-weight: 700;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid #e5e7eb;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 0.75rem;
  background: #fff;
  color: #6b7280;
  font-size: 0.875rem;
}

.merchant-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
}

.merchant-auth-divider::before,
.merchant-auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #e5e7eb;
}

.merchant-auth-divider span {
  font-weight: 700;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1;
  white-space: nowrap;
}

.auth-submit {
  min-height: 44px;
  font-weight: 600;
}

.auth-toggle {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
}

.auth-toggle a {
  font-weight: 600;
  text-decoration: none;
}

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

  .auth-headline {
    font-size: 1.35rem;
  }
}

.merchant-access-locked {
  border-color: #e5e7eb;
  background: #fafafa;
}
