/* Auth page — login / signup */
.auth-wrap {
  max-width: min(428px, 100%);
  margin: 0 auto;
  padding: var(--space-xl) var(--screen-padding);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  justify-content: center;
}

.auth-brand {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
}

.auth-tagline {
  font: var(--text-caption);
  margin-top: var(--space-xs);
}

.auth-form {
  background: var(--color-surface);
  border-radius: var(--card-radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.auth-title {
  font: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.auth-label {
  font: var(--text-caption);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.auth-input {
  padding: 12px var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-canvas);
  transition: border-color 0.2s;
  width: 100%;
}

.auth-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.auth-btn {
  margin-top: var(--space-sm);
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: opacity 0.2s;
}

.auth-btn:active {
  opacity: 0.8;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-error {
  color: var(--color-error);
  font: var(--text-caption);
  text-align: center;
  margin-top: var(--space-xs);
}

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

.auth-switch-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}
