/**
 * auth.css
 * Custom overrides for login, register, and recovery pages.
 * Place in: css/auth.css
 * 
 * Brand green: #24b314 (from c8.css theme variables)
 */

/* ── Page background ─────────────────────────────────────── */
body {
  background: #f0f2f5;
  min-height: 100vh;
  font-family: "Avenir Next W01", "Proxima Nova W01", "Rubik", -apple-system, sans-serif;
}

/* ── Auth card ───────────────────────────────────────────── */
.auth-box-w {
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  border: none;
  padding: 24px !important;
  background: #fff;
  max-width: 480px !important;
  margin: 48px auto;
}

.auth-box-w.wider {
  max-width: 480px;
}

/* ── Logo area ───────────────────────────────────────────── */
.logo-w {
  margin-bottom: 20px;
  padding: 0 !important;
}

.logo-w img {
  width: 140px !important; /* was 300px — oversized */
  height: auto;
}

/* ── Page heading ────────────────────────────────────────── */
.auth-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

/* ── Form labels ─────────────────────────────────────────── */
.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: block;
}

/* ── Inputs ──────────────────────────────────────────────── */
.form-control {
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  height: 44px;
  padding: 0 14px;
  font-size: 0.9375rem;
  color: #1a1a2e;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  background: #fafafa;
}

.form-control:focus {
  border-color: #24b314;
  box-shadow: 0 0 0 3px rgba(36, 179, 20, 0.12);
  background: #fff;
  outline: none;
}

select.form-control {
  height: 44px;
  cursor: pointer;
}

/* ── Primary button ──────────────────────────────────────── */
.btn-primary {
  background: #24b314;
  border-color: #24b314;
  border-radius: 8px;
  height: 44px;
  padding: 0 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(36, 179, 20, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: #1e9a10;
  border-color: #1e9a10;
  box-shadow: 0 4px 14px rgba(36, 179, 20, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.buttons-w {
  margin-top: 8px;
}

/* ── Alert / message boxes ───────────────────────────────── */
.auth-alert {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
}

.auth-alert.success {
  background: #edfaeb;
  border: 1px solid #a3e6a0;
  color: #1a6e17;
}

.auth-alert.error {
  background: #fff0f0;
  border: 1px solid #f5baba;
  color: #7a1c1c;
}

.auth-alert.info {
  background: #edf4ff;
  border: 1px solid #b3cefd;
  color: #1a3a7a;
}

/* ── Footer links ────────────────────────────────────────── */
.auth-links {
  margin-top: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-links a {
  color: #24b314;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-links a:hover {
  color: #1a7a0e;
  text-decoration: underline;
}

/* ── reCAPTCHA centering ─────────────────────────────────── */
.g-recaptcha {
  margin: 16px 0;
  display: flex;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-box-w,
  .auth-box-w.wider {
    margin: 16px;
    padding: 24px !important;
    border-radius: 10px;
  }

 .logo-w img {
    width: 120px !important;
  }
}
