/* =========================================================
   TRANS-NZOIA AHP — Forgot Password Page
   ========================================================= */

/* ----- Page shell ----- */
.auth-page {
  min-height: 100vh;
  background: var(--primary-800, #0f2d07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.25rem 2.5rem;
  position: relative;
}
.auth-page-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.auth-page-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(159,232,112,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159,232,112,.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.auth-page-glow {
  position: absolute; bottom: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(159,232,112,.1) 0%, transparent 65%);
}

/* ----- Back link ----- */
.auth-page-back {
  position: fixed;
  top: 1.5rem; left: 1.75rem;
  display: inline-flex; align-items: center; gap: .45em;
  color: rgba(255,255,255,.45); font-size: .8rem;
  text-decoration: none; transition: color .2s; z-index: 10;
}
.auth-page-back:hover { color: var(--lime, #9fe870); }

/* ----- Card ----- */
.auth-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem 2.25rem 2.25rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 72px rgba(0,0,0,.32), 0 4px 16px rgba(0,0,0,.12);
  position: relative; z-index: 1;
  text-align: center;
}

/* ----- Logo ----- */
.auth-card-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-card-logo img { height: 44px; width: auto; }

/* ----- Icon ----- */
.auth-card-icon {
  width: 64px; height: 64px; border-radius: 18px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  transition: transform .3s;
}
.auth-card-icon--amber { background: #fef3c7; color: #d97706; border: 1.5px solid #fde68a; }
.auth-card-icon--success { background: #f0fdf4; color: #16a34a; border: 1.5px solid #bbf7d0; }
.auth-card-icon--anim { animation: iconPop .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes iconPop {
  from { transform: scale(0.6); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ----- Title / Sub ----- */
.auth-card-title {
  font-family: var(--font-display, 'Syne', sans-serif) !important;
  font-size: 1.65rem !important;
  font-weight: 900 !important;
  color: var(--neutral-950, #050a02) !important;
  letter-spacing: -.03em;
  margin-bottom: .5rem;
}
.auth-card-sub {
  font-size: .88rem; color: var(--neutral-500, #5a7a48);
  line-height: 1.65; margin-bottom: 1.5rem;
}

/* ----- Alerts ----- */
.auth-alert {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .85rem 1rem; border-radius: 10px;
  margin-bottom: 1rem; font-size: .83rem; text-align: left; line-height: 1.5;
}
.auth-alert > i:first-child { font-size: .9rem; flex-shrink: 0; margin-top: .15em; }
.auth-alert--error { background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; }
.auth-alert--error > i:first-child { color: #dc2626; }

/* ----- Form ----- */
.auth-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.auth-field { display: flex; flex-direction: column; gap: .35rem; }
.auth-label { font-size: .82rem; font-weight: 600; color: var(--neutral-700, #2e4a1e); }
.auth-required { color: #dc2626; }
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--neutral-400, #7a9a65); font-size: .8rem; pointer-events: none;
}
.auth-input {
  width: 100%; height: 48px; padding: 0 1rem 0 2.7rem;
  background: #fff; border: 1.5px solid var(--neutral-200, #ddeece);
  border-radius: 12px; font-size: .9rem; font-family: inherit;
  color: var(--neutral-900, #111); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input::placeholder { color: var(--neutral-400, #7a9a65); }
.auth-input:focus { border-color: var(--primary-500, #3b8a00); box-shadow: 0 0 0 3px rgba(30,77,0,.1); }
.auth-input.is-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.auth-input.is-valid { border-color: #16a34a; }
.auth-field-error { font-size: .75rem; color: #dc2626; font-weight: 500; min-height: .9em; }

/* ----- Submit ----- */
.auth-submit {
  width: 100%; height: 50px; margin-top: .35rem;
  background: var(--primary-600, #1e4d00); color: var(--lime, #9fe870);
  border: none; border-radius: 14px; font-size: .92rem; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: .5em;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.auth-submit:hover:not(:disabled) {
  background: var(--primary-700, #163300);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30,77,0,.25);
}
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-submit-loading { display: none; align-items: center; gap: .4em; }
.auth-submit.is-loading .auth-submit-text { display: none; }
.auth-submit.is-loading .auth-submit-loading { display: flex; }
.auth-submit--outline {
  background: transparent;
  color: var(--primary-600, #1e4d00);
  border: 2px solid var(--primary-200, #a8e87a);
  margin-top: 1rem;
}
.auth-submit--outline:hover {
  background: var(--primary-50, #edfbd6);
  border-color: var(--primary-400, #5aaa1a);
}

/* ----- Back link in card ----- */
.auth-card-links { margin-top: 1.25rem; }
.auth-back-link-sm {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .82rem; color: var(--neutral-500, #5a7a48);
  text-decoration: none; transition: color .2s;
}
.auth-back-link-sm:hover { color: var(--primary-600, #1e4d00); }

/* ----- Success state ----- */
.auth-success-email {
  display: inline-block; margin-top: .4rem;
  color: var(--primary-600, #1e4d00); font-weight: 700;
}
.auth-success-note {
  display: flex; align-items: flex-start; gap: .65rem;
  background: var(--neutral-50, #f6faf0); border: 1px solid var(--neutral-100, #eef7e6);
  border-radius: 10px; padding: .9rem 1rem;
  font-size: .82rem; color: var(--neutral-600, #4a6b36);
  line-height: 1.6; text-align: left; margin-bottom: 1.5rem;
}
.auth-success-note > i { color: var(--primary-400, #5aaa1a); flex-shrink: 0; margin-top: .15em; }
.auth-success-note p { margin: 0; }
.auth-inline-btn {
  background: none; border: none; padding: 0;
  color: var(--primary-600, #1e4d00); font-weight: 700;
  font-size: inherit; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; transition: color .2s;
}
.auth-inline-btn:hover:not(:disabled) { color: var(--primary-400, #5aaa1a); }
.auth-inline-btn:disabled { opacity: .45; cursor: not-allowed; text-decoration: none; }

/* ----- Legal ----- */
.auth-page-legal {
  margin-top: 1.75rem; font-size: .7rem;
  color: rgba(255,255,255,.25); text-align: center;
  position: relative; z-index: 1;
}
.auth-page-legal a { color: rgba(255,255,255,.4); text-decoration: none; }
.auth-page-legal a:hover { color: var(--lime, #9fe870); }

/* ----- Responsive ----- */
@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.25rem; border-radius: 18px; }
  .auth-card-title { font-size: 1.45rem !important; }
}
