/* Log in, register, first-admin setup (views/login.ejs, register.ejs, setup.ejs): one centered card */

.auth-card {
  width: 100%;
  max-width: 24rem;
  margin: auto;
  padding: var(--spacing-xl) var(--spacing-md);
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.auth-heading {
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.auth-heading h1 {
  margin-bottom: 0.35rem;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.auth-heading p {
  color: var(--muted-foreground);
}

.auth-form {
  padding: var(--spacing-lg);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.auth-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: var(--spacing-xs);
}

.auth-error {
  margin-bottom: var(--spacing-md);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--status-error-border);
  border-radius: var(--radius-md);
  background: var(--status-error-bg);
  color: var(--status-error-text);
  font-size: var(--text-sm);
}

.auth-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-lg);
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  text-align: center;
}

.auth-links a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-links code,
.auth-form code {
  padding: 0.05rem 0.3rem;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}
