.customer-auth-page {
  min-height: 100vh;
  padding: 28px 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 8% 92%, var(--accent-soft), transparent 36%),
    radial-gradient(ellipse at 92% 8%, rgba(81, 126, 182, .13), transparent 34%),
    var(--paper);
  font-family: Inter, "Segoe UI", sans-serif;
}

.customer-auth-page .auth-shell {
  width: min(100%, 460px);
  padding: clamp(25px, 6vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 24px 72px rgba(0, 0, 0, .2);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

:root[data-theme="light"] .customer-auth-page .auth-shell {
  box-shadow: 0 24px 72px rgba(27, 47, 75, .1);
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.customer-auth-page .auth-shell .admin-brand {
  padding: 0;
  background: transparent;
}

.customer-auth-page .auth-shell .admin-brand img {
  width: 132px;
  height: 58px;
}

.auth-theme-toggle {
  min-height: 38px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--raised);
  font: 600 11px Inter, "Segoe UI", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}

.auth-theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}

.auth-theme-toggle > span:first-child { font-size: 15px; line-height: 1; }
.customer-auth-page .auth-eyebrow { margin-top: 34px; color: var(--accent); }
.customer-auth-page .auth-shell h1 { color: var(--ink); }
.customer-auth-page .auth-intro { color: var(--muted); }

.customer-auth-page .auth-form label {
  color: var(--ink);
  font: 600 12px Inter, "Segoe UI", sans-serif;
}

.customer-auth-page .auth-form input {
  height: 47px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--raised);
  font: 400 13px Inter, "Segoe UI", sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.customer-auth-page .auth-form input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.customer-auth-page .auth-submit-button {
  min-height: 48px;
  margin-top: 6px;
  padding: 0 17px;
  gap: 12px;
  border-radius: 9px;
  background: var(--accent);
  font: 650 13px Inter, "Segoe UI", sans-serif;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}

.customer-auth-page .auth-submit-button:hover {
  transform: translateY(-1px);
  background: var(--accent-hover, var(--accent));
}

.customer-auth-page .auth-submit-button:disabled {
  transform: none;
  opacity: .8;
  cursor: wait;
}

.customer-auth-page .auth-submit-icon { font-size: 18px; }
.customer-auth-page .auth-submit-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border: 2px solid rgba(255, 255, 255, .42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: customer-auth-spin .7s linear infinite;
}

.customer-auth-page .auth-switch { color: var(--muted); }
.customer-auth-page .auth-switch a, .customer-auth-page .auth-back { color: var(--accent); }
.customer-auth-page .auth-switch a:hover, .customer-auth-page .auth-back:hover { color: var(--accent-hover, var(--accent)); }

@keyframes customer-auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .customer-auth-page { padding: 16px 12px; }
  .customer-auth-page .auth-shell { padding: 27px 22px 25px; border-radius: 15px; }
  .customer-auth-page .auth-eyebrow { margin-top: 27px; }
  .customer-auth-page .auth-shell .admin-brand img { width: 112px; height: 50px; }
  .auth-theme-toggle { min-height: 36px; padding: 0 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .customer-auth-page .auth-submit-spinner { animation-duration: 1.4s; }
  .customer-auth-page .auth-shell, .auth-theme-toggle, .customer-auth-page .auth-submit-button { transition-duration: .01ms; }
}
