/* Auth pages - matches Connections dark theme */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-dark, #121213);
  color: var(--text-primary, #f5f5f5);
  font-family: var(--font-body, "Source Sans 3", -apple-system, sans-serif);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card, #1a1a1b);
  border: 1px solid var(--border, #3a3a3c);
  border-radius: 12px;
  padding: 2rem;
}

.auth-title {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 0.25rem;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted, #8a8a8a);
  margin: 0 0 1.5rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.auth-flash--alert {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
  border: 1px solid #b91c1c;
}

.auth-errors {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-errors li {
  margin: 0.25rem 0;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background: var(--bg-dark, #121213);
  border: 2px solid var(--border, #3a3a3c);
  border-radius: 8px;
  color: var(--text-primary, #f5f5f5);
  font-family: inherit;
  transition: border-color 0.15s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--green, #7cb342);
}

.auth-input::placeholder {
  color: var(--text-muted, #8a8a8a);
}

.auth-hint {
  font-size: 0.8rem;
  color: var(--text-muted, #8a8a8a);
}

.auth-hint--block {
  margin: 0 0 0.5rem;
}

.auth-divider {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #3a3a3c);
  font-size: 0.9rem;
  color: var(--text-muted, #8a8a8a);
  text-align: center;
}

.auth-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.auth-link {
  margin: 1.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border, #3a3a3c);
  font-size: 0.9rem;
  color: var(--text-muted, #8a8a8a);
  text-align: center;
}

.auth-link__anchor {
  color: var(--green, #7cb342);
  font-weight: 600;
  text-decoration: none;
}

.auth-link__anchor:hover {
  text-decoration: underline;
}

/* Shared nav and flash */
.auth-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card, #1a1a1b);
  border-bottom: 1px solid var(--border, #3a3a3c);
  font-family: var(--font-body, "Source Sans 3", sans-serif);
}

.auth-nav__brand {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary, #f5f5f5);
  text-decoration: none;
}

.auth-nav__brand:hover {
  color: var(--green, #7cb342);
}

.auth-nav__link {
  font-size: 0.9rem;
  color: var(--text-muted, #8a8a8a);
  text-decoration: none;
}

.auth-nav__link:hover {
  color: var(--green, #7cb342);
}

.auth-nav__email {
  font-size: 0.9rem;
  color: var(--text-muted, #8a8a8a);
  flex: 1;
  text-align: right;
}

.auth-nav__logout {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.flash {
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  font-family: sans-serif;
}

.flash--notice {
  background: rgba(124, 179, 66, 0.2);
  color: var(--green, #7cb342);
  border-bottom: 1px solid var(--green, #7cb342);
}

.flash--alert {
  background: rgba(185, 28, 28, 0.2);
  color: #fca5a5;
  border-bottom: 1px solid #b91c1c;
}
