/* =========================================================
   Forgot Password Page
   File: css/forgot-password.css
   ========================================================= */

.forgot-page {
  background: #fffdf8;
}

/* =========================================================
   Hero / Main
   ========================================================= */

.forgot-hero-section {
  position: relative;
  overflow: hidden;
  background: #021d13;
  padding: 58px 0 64px;
}

.forgot-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.forgot-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(213, 173, 88, 0.16), transparent 320px),
    linear-gradient(
      90deg,
      rgba(2, 29, 19, 0.30) 0%,
      rgba(2, 29, 19, 0.68) 45%,
      rgba(2, 29, 19, 0.92) 100%
    );
}

.forgot-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  align-items: stretch;
  gap: 34px;
}

/* =========================================================
   Form Card
   ========================================================= */

.forgot-form-card {
  border: 1px solid rgba(213, 173, 88, 0.36);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  padding: 38px 34px;
  backdrop-filter: blur(12px);
}

.forgot-form-head {
  text-align: center;
  margin-bottom: 24px;
}

.forgot-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-flex;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.forgot-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.forgot-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #9c762e;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.forgot-label::before,
.forgot-label::after {
  content: "";
  width: 28px;
  height: 1px;
  background: #d5ad58;
}

.forgot-form-head h1 {
  margin: 0 0 10px;
  color: #063522;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.45;
}

.forgot-form-head p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

/* =========================================================
   Progress
   ========================================================= */

.forgot-progress {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.forgot-progress-item {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #9b9f9a;
  text-align: center;
}

.forgot-progress-item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d8cdb5;
  background: #ffffff;
  color: #9b9f9a;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.forgot-progress-item strong {
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.forgot-progress-item.active span,
.forgot-progress-item.done span {
  border-color: #07452e;
  background: #07452e;
  color: #ffffff;
}

.forgot-progress-item.active strong,
.forgot-progress-item.done strong {
  color: #063522;
}

.forgot-progress-item.done span::before {
  content: "\F633";
  font-family: "bootstrap-icons";
  font-size: 16px;
}

.forgot-progress-item.done span {
  font-size: 0;
}

.forgot-progress-line {
  height: 2px;
  border-radius: 999px;
  background: #e5dcc9;
}

/* =========================================================
   Form
   ========================================================= */

.forgot-form {
  display: grid;
  gap: 18px;
}

.forgot-step {
  display: none;
  animation: forgotFade 0.28s ease;
}

.forgot-step.active {
  display: grid;
  gap: 18px;
}

@keyframes forgotFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: #063522;
  font-size: 14px;
  font-weight: 900;
}

.input-wrap {
  position: relative;
  height: 54px;
  border: 1px solid #e0d5be;
  border-radius: 11px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  transition: 0.22s ease;
}

.input-wrap:focus-within {
  border-color: #d5ad58;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(213, 173, 88, 0.12);
}

.input-wrap > i {
  width: 50px;
  color: #9c762e;
  font-size: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #273027;
  font-size: 15px;
  padding: 0 0 0 12px;
}

.input-wrap input::placeholder {
  color: #a5a5a5;
}

.password-wrap input {
  padding-left: 46px;
}

.toggle-password {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #7a7f78;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: 0.2s ease;
}

.toggle-password:hover {
  background: #fff7e4;
  color: #9c762e;
}

.form-error {
  display: none;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.7;
}

.form-group.has-error .form-error {
  display: block;
}

.form-group.has-error .input-wrap {
  border-color: #b3261e;
  background: #fff8f7;
}

/* =========================================================
   Buttons / Alerts
   ========================================================= */

.forgot-submit-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 11px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 900;
  transition: 0.25s ease;
}

.forgot-submit-btn:hover {
  background: #d5ad58;
  color: #021d13;
  transform: translateY(-2px);
}

.forgot-back-btn {
  width: 100%;
  height: 54px;
  border: 1px solid #d8cdb5;
  border-radius: 11px;
  background: #fffdf8;
  color: #063522;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 900;
  transition: 0.25s ease;
}

.forgot-back-btn:hover {
  border-color: #d5ad58;
  background: #fff7e4;
}

.forgot-actions-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.forgot-info-alert {
  border: 1px solid rgba(213, 173, 88, 0.28);
  border-radius: 12px;
  background: #fff7e4;
  color: #6b5b35;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
}

.forgot-info-alert i {
  color: #9c762e;
  font-size: 20px;
  margin-top: 3px;
}

.forgot-info-alert p {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
}

.forgot-code-note {
  border: 1px solid rgba(7, 69, 46, 0.13);
  border-radius: 14px;
  background: rgba(7, 69, 46, 0.055);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.forgot-code-note > i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #07452e;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 23px;
  flex: 0 0 auto;
}

.forgot-code-note h2 {
  margin: 0 0 5px;
  color: #063522;
  font-size: 18px;
  font-weight: 900;
}

.forgot-code-note p {
  margin: 0;
  color: #626a63;
  font-size: 13px;
  line-height: 1.9;
}

.forgot-timer-row {
  border: 1px solid #e7ddc9;
  border-radius: 12px;
  background: #fffdf8;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.forgot-timer-row span {
  color: #626a63;
  font-size: 13px;
  font-weight: 800;
}

.resend-code-btn {
  border: 0;
  background: transparent;
  color: #07452e;
  font-size: 13px;
  font-weight: 900;
  transition: 0.2s ease;
}

.resend-code-btn:disabled {
  color: #a5a5a5;
  cursor: not-allowed;
}

.resend-code-btn:not(:disabled):hover {
  color: #9c762e;
}

/* =========================================================
   Password Strength
   ========================================================= */

.password-strength {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #eee6d6;
  overflow: hidden;
  margin-top: 2px;
}

.password-strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #b3261e;
  transition: 0.25s ease;
}

.password-strength.is-weak span {
  width: 33%;
  background: #b3261e;
}

.password-strength.is-medium span {
  width: 66%;
  background: #d5ad58;
}

.password-strength.is-strong span {
  width: 100%;
  background: #07452e;
}

/* =========================================================
   Success
   ========================================================= */

.forgot-success-box {
  display: none;
  text-align: center;
  border: 1px solid rgba(7, 69, 46, 0.15);
  border-radius: 16px;
  background: rgba(7, 69, 46, 0.055);
  padding: 34px 22px;
  animation: forgotFade 0.28s ease;
}

.forgot-success-box.show {
  display: block;
}

.forgot-success-icon {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #07452e;
  color: #ffffff;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  font-size: 42px;
}

.forgot-success-box h2 {
  margin: 0 0 10px;
  color: #063522;
  font-size: 24px;
  font-weight: 900;
}

.forgot-success-box p {
  margin: 0 0 20px;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.forgot-success-box a {
  height: 48px;
  border-radius: 999px;
  background: #07452e;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 900;
  transition: 0.25s ease;
}

.forgot-success-box a:hover {
  background: #d5ad58;
  color: #021d13;
}

.forgot-bottom-link {
  text-align: center;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
  margin-top: 18px;
}

.forgot-bottom-link a {
  color: #07452e;
  font-weight: 900;
}

/* =========================================================
   Side Card
   ========================================================= */

.forgot-side-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(213, 173, 88, 0.34);
  background:
    radial-gradient(circle at 22% 22%, rgba(213, 173, 88, 0.16), transparent 260px),
    linear-gradient(135deg, rgba(2, 29, 19, 0.94), rgba(7, 69, 46, 0.90));
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.24);
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
}

.forgot-side-content {
  padding: 48px 46px 22px;
  color: #ffffff;
}

.forgot-side-content > span {
  color: #d5ad58;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  margin-bottom: 10px;
}

.forgot-side-content h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.55;
}

.forgot-side-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 2.1;
}

.forgot-benefits {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.forgot-benefits article {
  border: 1px solid rgba(213, 173, 88, 0.20);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.forgot-benefits i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(213, 173, 88, 0.12);
  color: #d5ad58;
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.forgot-benefits h3 {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.forgot-benefits p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.9;
}

.forgot-side-btn {
  margin-top: 26px;
  height: 48px;
  border-radius: 999px;
  background: #d5ad58;
  color: #021d13;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  font-weight: 900;
  transition: 0.25s ease;
}

.forgot-side-btn:hover {
  transform: translateY(-3px);
  color: #021d13;
}

.forgot-side-image {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 24px 0;
}

.forgot-side-image img {
  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35));
}

/* =========================================================
   Info Section
   ========================================================= */

.forgot-info-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 173, 88, 0.08), transparent 430px),
    #fffdf8;
  padding: 46px 0 58px;
}

.forgot-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.forgot-info-grid article {
  min-height: 190px;
  border: 1px solid #e9dfc9;
  border-radius: 15px;
  background: #ffffff;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.035);
  transition: 0.25s ease;
}

.forgot-info-grid article:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(4, 53, 35, 0.13);
}

.forgot-info-grid i {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff7e4;
  color: #9c762e;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 16px;
}

.forgot-info-grid h2 {
  margin: 0 0 8px;
  color: #063522;
  font-size: 20px;
  font-weight: 900;
}

.forgot-info-grid p {
  margin: 0;
  color: #626a63;
  font-size: 14px;
  line-height: 2;
}

.forgot-bottom-cta {
  background: #fffdf8;
  padding: 0;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
  .forgot-layout {
    grid-template-columns: 1fr;
  }

  .forgot-side-card {
    min-height: auto;
  }

  .forgot-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .forgot-hero-section {
    padding: 36px 0 44px;
  }

  .forgot-form-card {
    border-radius: 16px;
    padding: 28px 18px;
  }

  .forgot-form-head h1 {
    font-size: 28px;
  }

  .forgot-form-head p {
    font-size: 13px;
  }

  .forgot-progress {
    gap: 6px;
  }

  .forgot-progress-item span {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .forgot-progress-item strong {
    font-size: 10px;
  }

  .forgot-code-note {
    flex-direction: column;
    text-align: center;
  }

  .forgot-code-note > i {
    margin: 0 auto;
  }

  .forgot-actions-row {
    grid-template-columns: 1fr;
  }

  .forgot-timer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .forgot-side-content {
    padding: 34px 20px 18px;
    text-align: center;
  }

  .forgot-side-content h2 {
    font-size: 27px;
  }

  .forgot-side-content p {
    font-size: 14px;
  }

  .forgot-benefits article {
    text-align: right;
  }

  .forgot-side-image {
    min-height: 180px;
  }

  .forgot-info-section {
    padding: 36px 0 44px;
  }

  .forgot-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}