/* ==========================================================================
   PAGE: AUTHENTICATION
   ========================================================================== */

.auth-card {
  background-color: var(--card-bg);
  padding: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 25rem;
  text-align: center;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-headings);
}

.form-group {
  text-align: left;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  background-color: var(--body-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 0.1875rem rgba(88, 166, 255, 0.3);
}

.auth-card .btn-primary {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.error-text {
  color: #f87171;
  min-height: 1.2em; /* Prevents layout shift */
}

.auth-switch {
  margin-top: 1.5rem;
  color: var(--text-secondary);
}

.auth-switch a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

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