/* ═══════════════════════════════════════════
   AUTH PAGES — auth.css
   ═══════════════════════════════════════════ */

.auth-page {
  min-height: calc(100vh - 80px);
  background: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 40px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 24px rgba(26,43,95,0.08);
}

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

/* Logo */
.auth-logo {
  display: block;
  margin-bottom: 28px;
}

.auth-logo img {
  height: 48px;
  width: auto;
}

/* Headings */
.auth-card h1 {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 6px;
}

.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Form groups */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-group input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
}

.form-group input::placeholder { color: #b8c0d0; }

/* Two-column row */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Remember me / forgot */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 13px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--orange);
  cursor: pointer;
}

.forgot-link {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.forgot-link:hover { text-decoration: underline; }

/* Terms checkbox */
.auth-terms-check {
  margin-bottom: 22px;
}

.auth-terms-check a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
}

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

/* Submit button */
.btn-full {
  width: 100%;
  text-align: center;
  padding: 13px;
  font-size: 16px;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--muted);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Switch link */
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.auth-switch a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

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

/* Trust note (login) */
.auth-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
}

/* Trust badges (signup) */
.auth-trust-badges {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  flex: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 560px) {
  .auth-card { padding: 32px 20px; }
  .form-row-two { grid-template-columns: 1fr; }
  .auth-trust-badges { flex-direction: column; gap: 10px; }
  .auth-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── PASSWORD FIELD WITH SHOW/HIDE TOGGLE ── */
.input-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-password-wrap input {
  width: 100%;
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity 0.2s;
  line-height: 1;
}

.toggle-pw:hover { opacity: 1; }

/* ── PASSWORD STRENGTH BAR ── */
.strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s ease;
}

.strength-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
  min-height: 16px;
}

/* ── AUTH ICON (forgot/reset pages) ── */
.auth-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}