:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090d12;
  color: #f8fafc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 360px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 12%, rgba(79, 30, 173, 0.28), transparent 34rem),
    radial-gradient(circle at 84% 78%, rgba(0, 194, 255, 0.13), transparent 32rem),
    #090d12;
}

.auth-shell {
  min-height: calc(100vh - 260px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}

.auth-card {
  width: min(100%, 620px);
  padding: 34px 40px 28px;
  border: 1px solid #3d4b57;
  border-radius: 18px;
  background: rgba(14, 22, 29, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46), 0 0 0 1px rgba(164, 66, 255, 0.11);
}

.auth-logo {
  display: block;
  width: min(100%, 500px);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

.auth-state { text-align: center; }
.auth-state[hidden] { display: none; }

.auth-state h1 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 4vw, 2.25rem);
  line-height: 1.12;
}

.auth-state p {
  margin: 0 auto 18px;
  max-width: 48ch;
  color: #c6d0d9;
  line-height: 1.55;
}

.auth-providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}

.provider-button,
#auth-error-reset {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #7c3aed;
  border-radius: 10px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #6d28d9, #8b2be2);
  color: #fff;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.provider-button:hover,
.provider-button:focus-visible,
#auth-error-reset:hover,
#auth-error-reset:focus-visible {
  border-color: #66dcff;
  outline: 3px solid rgba(55, 204, 255, 0.28);
  outline-offset: 2px;
}

.provider-button-secondary { background: #17212b; }
.auth-note { font-size: 0.88rem; }

.auth-confidential {
  margin: 22px 0 0;
  border-top: 1px solid #273540;
  padding-top: 16px;
  color: #91a0ad;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.auth-spinner {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0 auto 20px;
  border: 4px solid #34414c;
  border-top-color: #c14cff;
  border-right-color: #3bd8ff;
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

.auth-error {
  border: 1px solid #cc5f42;
  border-radius: 12px;
  padding: 20px;
  background: rgba(86, 29, 20, 0.3);
}

.auth-error h1 { color: #ffb29d; }

body.vroomitest-app-running > .auth-shell,
body.vroomitest-app-running > vroom-universal-footer {
  display: none !important;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

@media (max-width: 620px) {
  .auth-shell { padding: 24px 14px; }
  .auth-card { padding: 26px 20px 22px; }
  .auth-providers { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner { animation-duration: 1.8s; }
}
