/* ================================================
   FORGOT PASSWORD & RESET PASSWORD — Simple Card Design
   ================================================ */

/* ---------- Page background ---------- */
.forgot-pw-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: 'Inter', Arial, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(22, 168, 200, .15), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(119, 217, 91, .12), transparent 50%),
    linear-gradient(145deg, #0b1523 0%, #101d2c 52%, #17394d 100%);
}

/* ---------- Card ---------- */
.forgot-pw-card {
  width: 100%;
  max-width: 440px;
  background: rgba(255, 255, 255, .96);
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 255, 255, .08);
  text-align: center;
  animation: cardFadeIn .5s ease;
}

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

/* ---------- Icon circle ---------- */
.forgot-pw-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a8c8, #0f7ea0);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 168, 200, .28);
}

.forgot-pw-icon svg {
  width: 32px;
  height: 32px;
}

.forgot-pw-icon.reset-icon {
  background: linear-gradient(135deg, #32a65a, #1e8a42);
  box-shadow: 0 8px 24px rgba(50, 166, 90, .28);
}

/* ---------- Title & subtitle ---------- */
.forgot-pw-title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: #102033;
  letter-spacing: -.02em;
}

.forgot-pw-subtitle {
  margin: 0 0 28px;
  font-size: 14px;
  color: #5f7084;
  line-height: 1.6;
}

.forgot-pw-subtitle strong {
  color: #0f7ea0;
}

/* ---------- Form ---------- */
.forgot-pw-form {
  display: grid;
  gap: 18px;
  text-align: left;
}

.forgot-pw-label {
  display: grid;
  gap: 6px;
}

.forgot-pw-label span {
  font-size: 13px;
  font-weight: 700;
  color: #3a4a5c;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.required-mark {
  color: #d54c4c;
  font-weight: 800;
}

.forgot-pw-form input {
  width: 100%;
  border: 1.5px solid #d7e2ea;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  color: #102033;
  background: #f8fbfd;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.forgot-pw-form input:focus {
  outline: none;
  border-color: #16a8c8;
  box-shadow: 0 0 0 3px rgba(22, 168, 200, .12);
  background: #fff;
}

.forgot-pw-form input::placeholder {
  color: #a0b0c0;
}

/* ---------- Password toggle ---------- */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 48px;
}

.password-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f7084;
  border-radius: 8px;
  transition: background .18s ease, color .18s ease;
}

.password-eye-btn:hover {
  background: rgba(22, 168, 200, .08);
  color: #0f7ea0;
}

.password-eye-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Submit button ---------- */
.forgot-pw-btn {
  width: 100%;
  border: 0;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #16a8c8, #0f7ea0);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 8px 24px rgba(22, 168, 200, .22);
  margin-top: 4px;
}

.forgot-pw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(22, 168, 200, .32);
}

.forgot-pw-btn:active {
  transform: translateY(0);
}

/* ---------- Footer links ---------- */
.forgot-pw-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.forgot-pw-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #5f7084;
  text-decoration: none;
  transition: color .18s ease;
}

.forgot-pw-back:hover {
  color: #0f7ea0;
}

.forgot-pw-resend {
  border: 1.5px solid #d7e2ea;
  background: #f8fbfd;
  color: #0f7ea0;
  padding: 8px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.forgot-pw-resend:hover {
  background: #eef6fa;
  border-color: #16a8c8;
  transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .forgot-pw-page {
    padding: 16px;
  }

  .forgot-pw-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }

  .forgot-pw-title {
    font-size: 22px;
  }

  .forgot-pw-icon {
    width: 56px;
    height: 56px;
  }

  .forgot-pw-icon svg {
    width: 26px;
    height: 26px;
  }
}
