body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f5ef;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.auth-card {
  background: white;
  padding: 36px;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

h1 {
  margin: 0 0 8px;
}

.subtext {
  color: #6b7280;
  margin-bottom: 24px;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  font-size: 15px;
}

button {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #1f6f5b;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.switch-link {
  margin-top: 16px;
  text-align: center;
}

.switch-link a {
  color: #1f6f5b;
  font-weight: 700;
  text-decoration: none;
}

.error {
  color: #b91c1c;
  min-height: 20px;
  margin-bottom: 8px;
}

.status {
  color: #4b5563;
  min-height: 20px;
  margin-bottom: 6px;
  font-size: 14px;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
  opacity: 0;
  transform: scaleX(0.98);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.progress-track.is-visible {
  opacity: 1;
  transform: scaleX(1);
}

.progress-bar {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6f5b 0%, #4aa88d 50%, #1f6f5b 100%);
  transform: translateX(-120%);
}

.progress-track.is-loading .progress-bar {
  animation: auth-progress 1.05s ease-in-out infinite;
}

.progress-track.is-loading {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes auth-progress {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}
