/* The design system's auth screens (design/ in this repository, at fd92faf): its simple/screens/auth.css. A copy. */
/* Shared by the four centred auth screens: sign in, SSO, sign up, reset. */

.auth {
  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) 20px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* The SSO screen is narrower and breathes more between its three blocks. */
.auth-card--sso {
  max-width: 340px;
  gap: 40px;
}

.auth-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-head--sso {
  margin-bottom: 2px;
}

.auth-head--reset {
  gap: var(--space-2);
}

.auth-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.auth-title--sso {
  font-size: 18px;
}

.auth-title--signup {
  font-size: 22px;
}

.auth-sub {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

.auth-sub--sso {
  font-size: var(--text-base);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.auth-form .auth-actions {
  margin-top: var(--space-1);
}

.auth-actions .ds-btn {
  width: max-content;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.auth-link {
  color: var(--color-theme);
  text-decoration: none;
  transition: color var(--transition-base);
}

.auth-link:hover {
  color: var(--color-theme-hover);
  text-decoration: underline;
}

.auth-sso-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

/* Ghost buttons carry no chrome here — they read as a stack of plain choices,
   so they take body weight and size rather than the button defaults. */
.auth-sso-list .ds-btn {
  width: max-content;
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
}

.auth-legal {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-muted);
}
