.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 1rem;
}

.auth-card {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  max-width: 420px;
  width: 100%;
  padding: 2.5rem 2rem;
  animation: fadeInUp 0.4s ease-out;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  margin: 0 auto 0.8rem;
}

.auth-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab {
  background: none;
  border: none;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

.tab.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.auth-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.auth-input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.auth-input::placeholder {
  color: color-mix(in srgb, var(--text-muted) 80%, transparent);
}

.auth-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}

.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--primary-contrast);
  font-weight: 600;
  border: none;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 10px color-mix(in srgb, var(--primary) 25%, transparent);
}

.is-hidden {
  display: none;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--step-bg);
  color: var(--text);
}

.alert-error {
  background: color-mix(in srgb, #ef4444 18%, var(--surface));
  color: color-mix(in srgb, #ef4444 70%, var(--text));
  border-color: color-mix(in srgb, #ef4444 35%, var(--border));
}

.alert-success {
  background: color-mix(in srgb, #22c55e 16%, var(--surface));
  color: color-mix(in srgb, #22c55e 65%, var(--text));
  border-color: color-mix(in srgb, #22c55e 30%, var(--border));
}

.alert-info {
  background: color-mix(in srgb, #38bdf8 16%, var(--surface));
  color: color-mix(in srgb, #38bdf8 65%, var(--text));
  border-color: color-mix(in srgb, #38bdf8 30%, var(--border));
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .auth-card {
    padding: 2rem 1.5rem;
    border-radius: 0;
    box-shadow: none;
  }
}