/* Auth pages — depends on tokens.css, base.css, components.css */

.auth-page {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: calc(100vh - 64px);
  padding: 100px var(--space-4) var(--space-10);
  width: 100%;
}

.auth-card {
  max-width: 420px;
  width: 100%;
}

.auth-card__title {
  color: var(--text-primary);
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.auth-card__subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.auth-divider {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  gap: var(--space-3);
  letter-spacing: var(--tracking-wide);
  margin: var(--space-4) 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--border-subtle);
  content: "";
  flex: 1;
  height: var(--border-width);
}

.auth-google {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-switch {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  text-align: center;
}

.auth-switch__btn {
  color: var(--accent);
  cursor: pointer;
  font-size: var(--text-sm);
  padding: 0;
  text-decoration: underline;
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-switch__btn:hover {
  color: var(--text-primary);
}

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

.auth-form__meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.auth-link {
  color: var(--accent);
  font-size: var(--text-sm);
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-link:hover {
  color: var(--text-primary);
}

.auth-back {
  color: var(--accent);
  display: inline-block;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  transition: color var(--duration-fast) var(--ease-default);
}

.auth-back:hover {
  color: var(--text-primary);
}

.auth-submit {
  width: 100%;
}

#auth-error {
  color: var(--color-error);
  display: none;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  min-height: 20px;
}

#auth-message {
  color: var(--color-success);
  display: none;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  min-height: 20px;
}

#forgot-success {
  color: var(--color-success);
  display: none;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

#forgot-error,
#reset-error {
  color: var(--color-error);
  display: none;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

/* OAuth consent */
.oauth-consent__brand {
  align-items: center;
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.oauth-consent__lead {
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}

.oauth-consent__sub {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.oauth-consent__list {
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
}

.oauth-consent__list li {
  margin-bottom: var(--space-2);
  padding-left: var(--space-5);
  position: relative;
}

.oauth-consent__list li::before {
  color: var(--color-success);
  content: "✓";
  left: 0;
  position: absolute;
}

.oauth-consent__hint {
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-6);
}

.oauth-consent__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 480px) {
  .oauth-consent__actions {
    flex-direction: row;
  }

  .oauth-consent__actions .btn--primary,
  .oauth-consent__actions .btn--ghost {
    flex: 1;
    justify-content: center;
    min-height: 44px;
    width: 100%;
  }
}

#oauth-error {
  color: var(--color-error);
  display: none;
  font-size: var(--text-sm);
  margin-top: var(--space-4);
}

#oauth-loading-panel {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}
