/* =========================================================
   forget-password.css — Dedicated styles for Forget Password page
   Theme: Light · Brand color #c96 · Font: Poppins
   ========================================================= */

/* ── Page Shell ─────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: #f7f5f2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

/* ── Auth Card ──────────────────────────────────────────── */
.auth-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  animation: authCardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card Header / Brand Strip ──────────────────────────── */
.auth-brand {
  text-align: center;
  padding: 3.6rem 3.6rem 2.8rem;
  border-bottom: 1px solid #f0ede8;
  position: relative;
}

.auth-back-link {
  position: absolute;
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: #aaa;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease, gap 0.2s ease;
}

.auth-back-link:hover {
  color: #c96;
  gap: 0.8rem;
}

.auth-back-link i {
  font-size: 1.4rem;
}

/* ── Icon Badge ─────────────────────────────────────────── */
.auth-icon-badge {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #fdf3e8 0%, #fae8d0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.auth-icon-badge i {
  font-size: 2.8rem;
  color: #c96;
}

.auth-brand .brand-logo {
  display: inline-block;
  margin-bottom: 1.4rem;
}

.auth-brand .brand-logo img {
  height: 30px;
  width: auto;
  display: block;
  margin: 0 auto;
}

.auth-brand-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.auth-brand-subtitle {
  font-size: 1.35rem;
  color: #999;
  font-weight: 300;
  margin: 0;
  line-height: 1.6;
}

/* ── Form Body ──────────────────────────────────────────── */
.auth-body {
  padding: 3.2rem 3.6rem 3.6rem;
}

/* ── Form Groups ────────────────────────────────────────── */
.auth-form-group {
  margin-bottom: 2rem;
  position: relative;
}

.auth-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  width: 100%;
  height: 52px;
  padding: 0 1.6rem;
  font-size: 1.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #444;
  background: #faf9f7;
  border: 1.5px solid #e8e4de;
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-appearance: none;
}

.auth-input::placeholder {
  color: #bbb;
}

.auth-input:hover {
  border-color: #d4c4b0;
  background: #fdfcfa;
}

.auth-input:focus {
  border-color: #c96;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(204, 153, 102, 0.12);
}

.auth-input.input-error {
  border-color: #e74c3c;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

.auth-input.input-success {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.08);
}

/* ── Status badge below input ───────────────────────────── */
.auth-email-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  margin-top: 0.7rem;
  font-weight: 400;
  min-height: 1.8rem;
  transition: all 0.2s ease;
  animation: statusFade 0.2s ease;
}

@keyframes statusFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-email-status.ok  { color: #27ae60; }
.auth-email-status.err { color: #e74c3c; }
.auth-email-status.loading { color: #aaa; }

/* ── Submit Button ──────────────────────────────────────── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 52px;
  padding: 0 2.4rem;
  font-size: 1.35rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c96;
  background: transparent;
  border: 2px solid #c96;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.15s ease,
    opacity 0.3s ease;
  margin-top: 0.4rem;
}

.auth-btn:hover:not(:disabled) {
  background: #c96;
  color: #fff;
  box-shadow: 0 8px 24px rgba(204, 153, 102, 0.3);
  transform: translateY(-1px);
}

.auth-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(204, 153, 102, 0.2);
}

.auth-btn i {
  font-size: 1.6rem;
  transition: transform 0.25s ease;
}

.auth-btn:hover:not(:disabled) i {
  transform: translateX(4px);
}

.auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Loading spinner inside button ──────────────────────── */
.auth-btn.loading {
  pointer-events: none;
  color: #c96;
}

.auth-btn.loading .btn-label { display: none; }
.auth-btn.loading .btn-icon  { display: none; }

.auth-btn.loading::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(204, 153, 102, 0.3);
  border-top-color: #c96;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Footer area ────────────────────────────────────────── */
.auth-footer {
  text-align: center;
  margin-top: 2.4rem;
}

.auth-footer-text {
  font-size: 1.3rem;
  color: #aaa;
  margin: 0;
}

.auth-footer-text a {
  color: #c96;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-footer-text a:hover {
  color: #bf8040;
}

/* ── Success State ──────────────────────────────────────── */
.auth-success-state {
  display: none;
  text-align: center;
  padding: 0.8rem 0 1.2rem;
  animation: authCardIn 0.4s ease both;
}

.auth-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #e8f8ef 0%, #d0f0e0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: badgePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.auth-success-icon i {
  font-size: 2.4rem;
  color: #27ae60;
}

.auth-success-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.8rem;
}

.auth-success-text {
  font-size: 1.35rem;
  color: #999;
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2.4rem;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 576px) {
  .auth-page {
    padding: 3rem 1.2rem;
    align-items: flex-start;
    padding-top: 5rem;
  }

  .auth-card {
    border-radius: 16px;
    max-width: 100%;
  }

  .auth-brand {
    padding: 2.8rem 2rem 2.2rem;
  }

  .auth-brand-title {
    font-size: 1.8rem;
  }

  .auth-brand-subtitle {
    font-size: 1.25rem;
  }

  .auth-body {
    padding: 2.4rem 2rem 2.8rem;
  }

  .auth-back-link span {
    display: none;
  }
}
