/* ============================================================
   Tournoux Family — auth.css
   Login, register, forgot/reset password, account pages
   ============================================================ */

.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 3rem 1rem 4rem;
  min-height: calc(100vh - var(--header-h) - 120px);
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 400px;
}

.auth-card--wide { max-width: 520px; }

.auth-card h1 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
}

/* Form fields */
.form-field {
  margin-bottom: 1.1rem;
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,74,122,.12);
}
.form-field input.input-error { border-color: #b22222; }
.field-error {
  display: block;
  color: #b22222;
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

/* Password toggle wrapper — injected by password-toggle.js */
.pw-wrapper { position: relative; }
.pw-wrapper input { padding-right: 2.6rem; }
.pw-toggle {
  position: absolute;
  right: 0.6rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; padding: 0.2rem;
  color: var(--text-muted); font-size: 1rem;
  line-height: 1;
}
.pw-toggle:hover { color: var(--primary); }

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
  color: #3c4043;
}

/* Auth links below form */
.auth-links {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.auth-links a { font-weight: 500; }
.auth-sep { margin: 0 0.5rem; }
