:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: #f4f6f8;
  color: #17212b;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(180deg, #eef5f5 0%, #f7f8f9 54%, #eef1f3 100%);
}

.auth-card {
  width: min(100%, 380px);
  padding: 36px 32px 32px;
  text-align: center;
  background: #ffffff;
  border: 1px solid #d9e0e4;
  border-radius: 16px;
  box-shadow: 0 18px 48px rgb(24 44 54 / 10%);
}

.auth-logo {
  display: block;
  width: auto;
  height: 38px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: #567078;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 650;
}

.auth-progress {
  height: 3px;
  margin: 24px 0 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ecef;
}

.auth-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: #1e7d80;
  animation: auth-progress 1.2s ease-in-out infinite alternate;
}

.auth-card[data-state="error"] .auth-progress span {
  width: 100%;
  animation: none;
  background: #b54343;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: #5f6d73;
  font-size: 14px;
  line-height: 1.6;
}

.auth-card[data-state="error"] .auth-message { color: #9d3131; }

@keyframes auth-progress {
  from { transform: translateX(-20%); }
  to { transform: translateX(155%); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-progress span { animation: none; }
}
