/* ─── Auth Pages CSS (T94) ──────────────────────────────────────
   Login · Register · Forgot Password · Reset Password
   Color primary: #d71920 (red)
   ─────────────────────────────────────────────────────────────── */

/* === Page wrapper === */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 16px 80px;
  min-height: 48vh;
}

/* === Card === */
.auth-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  width: 100%;
  max-width: 480px;
  padding: 40px 40px 36px;
  box-sizing: border-box;
}
.auth-card--wide {
  max-width: 880px;
  padding: 0;
  overflow: hidden;
}

/* === 2-column split (login page desktop) === */
.auth-split {
  display: flex;
  min-height: 440px;
}
.auth-split__left {
  flex: 0 0 310px;
  background: #d71920;
  color: #fff;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-split__right {
  flex: 1;
  padding: 48px 44px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === Auth icon (circle on left panel) === */
.auth-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* === Headings === */
.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 8px;
  line-height: 1.3;
}
.auth-title--light {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}
.auth-subtitle {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 28px;
}
.auth-subtitle--light {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin: 0 0 28px;
}

/* === Flash messages === */
.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.auth-alert--error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
}
.auth-alert--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
}

/* === Form groups === */
.auth-form-group {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.auth-label em {
  color: #d71920;
  font-style: normal;
  margin-left: 2px;
}

/* === Inputs === */
.auth-input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.auth-input:focus {
  border-color: #d71920;
  box-shadow: 0 0 0 3px rgba(215,25,32,0.11);
}
.auth-input[readonly],
.auth-input:read-only {
  background: #f9fafb;
  color: #9ca3af;
  cursor: default;
}

/* === Forgot password row === */
.auth-forgot-row {
  text-align: right;
  margin-top: -6px;
  margin-bottom: 18px;
}

/* === Submit button === */
.auth-btn-submit {
  display: block;
  width: 100%;
  height: 48px;
  background: #d71920;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s;
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.auth-btn-submit:hover,
.auth-btn-submit:focus {
  background: #b31419;
  outline: none;
}

/* === Outline button (on red left panel) === */
.auth-btn-outline {
  display: inline-block;
  height: 44px;
  line-height: 42px;
  padding: 0 22px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.70);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}
.auth-btn-outline:hover,
.auth-btn-outline:focus {
  background: #fff;
  color: #d71920;
  text-decoration: none;
}

/* === Divider on red panel === */
.auth-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 24px 0;
}

/* === Links === */
.auth-link {
  color: #d71920;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.auth-link:hover {
  color: #9e1217;
  text-decoration: underline;
}

/* === Footer note below card === */
.auth-footer-note {
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  margin-top: 20px;
  line-height: 1.5;
}

/* === Checkbox row === */
.auth-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}
.auth-checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #d71920;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.auth-checkbox-row label {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  cursor: pointer;
}

/* === Alert inside wide card (login) === */
.auth-card--wide .auth-alert {
  margin: 24px 44px -8px;
}

/* === Responsive === */
@media (max-width: 860px) {
  .auth-split__left {
    flex: 0 0 260px;
  }
}

@media (max-width: 767px) {
  .auth-page {
    padding: 12px 8px 90px;
    align-items: flex-start;
  }
  .auth-card {
    padding: 28px 20px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 100%;
  }
  .auth-card--wide {
    padding: 0;
    border-radius: 12px;
    max-width: 100%;
  }
  .auth-split {
    flex-direction: column;
    min-height: auto;
  }
  .auth-split__left {
    flex: none;
    padding: 28px 24px 24px;
  }
  .auth-split__right {
    padding: 24px 20px 28px;
    justify-content: flex-start;
  }
  .auth-card--wide .auth-alert {
    margin: 20px 20px -8px;
  }
  .auth-input {
    height: 46px;
    font-size: 16px; /* prevent iOS auto-zoom */
  }
  .auth-btn-submit {
    height: 50px;
    font-size: 17px;
  }
}
