/* ========================================
   FORGOT PASSWORD PAGE - Matches login.css
   ======================================== */

/* ========================================
   PAGE LAYOUT
   ======================================== */
body.page-forgotpassword {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FFFFFF;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  animation: fadeIn 0.5s ease;
}

body.page-forgotpassword #app-header,
body.page-forgotpassword header {
  background: transparent;
  background-color: transparent;
  border-bottom: none;
  position: relative;
  z-index: 1000;
  box-shadow: none;
  border: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

body.page-forgotpassword main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  background-color: transparent;
  grid-template-columns: none;
  column-gap: 0;
  grid-gap: 0;
  gap: 0;
}

body.page-forgotpassword main > * {
  grid-column: unset;
}

/* Hide image */
body.page-forgotpassword .image-container {
  display: none;
}

/* ========================================
   DASHBOARD HEADER + YELLOW CIRCLE
   ======================================== */
body.page-forgotpassword .dashboard-header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  background: transparent;
  background-color: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin-bottom: 20px;
}

body.page-forgotpassword .dashboard-header .header-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px auto;
  background: #F7E226;
  background-color: #F7E226;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(247, 226, 38, 0.4);
}

body.page-forgotpassword .dashboard-header .header-icon i {
  font-size: 26px;
  color: #1a1a1a;
}

body.page-forgotpassword .dashboard-header h2 {
  font-family: 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #514f4f;
  margin: 0;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

body.page-forgotpassword .dashboard-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #F7E226 0%, #FFC107 100%);
  border-radius: 3px;
}

body.page-forgotpassword .dashboard-header p {
  color: #666;
  font-size: 15px;
  margin-top: 20px;
  font-weight: 500;
}

/* ========================================
   FORM CONTAINER
   ======================================== */
body.page-forgotpassword #reset-section {
  margin: 0 auto 40px auto;
  padding: 0 20px;
  max-width: 450px;
  width: 100%;
  display: block;
  box-sizing: border-box;
  align-self: center;
  background: transparent;
  background-color: transparent;
}

/* ========================================
   FORM — yellow card
   ======================================== */
body.page-forgotpassword #forgotPasswordForm {
  background: #F7E226;
  padding: 32px;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(247, 226, 38, 0.15);
  border: 1px solid rgba(247, 226, 38, 0.2);
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 0;
  height: auto;
  box-sizing: border-box;
  display: block;
}

body.page-forgotpassword #forgotPasswordForm:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(247, 226, 38, 0.3);
}

/* ========================================
   LABELS
   ======================================== */
body.page-forgotpassword #forgotPasswordForm label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #555;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   INPUT FIELDS
   ======================================== */
body.page-forgotpassword #forgotPasswordForm input[type="email"] {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #ffffff;
  background-color: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  font-family: 'Nunito', sans-serif;
}

body.page-forgotpassword #forgotPasswordForm input:focus-visible {
  outline: none;
  border-color: #84c5ed;
  box-shadow: 0 0 0 4px rgba(132, 197, 237, 0.15);
  background: #ffffff;
  background-color: #ffffff;
}

body.page-forgotpassword #forgotPasswordForm input::placeholder {
  color: #999;
  font-weight: 400;
}

/* Autocomplete override — KEEP !important for -webkit-autofill */
body.page-forgotpassword #forgotPasswordForm input:-webkit-autofill,
body.page-forgotpassword #forgotPasswordForm input:-webkit-autofill:hover,
body.page-forgotpassword #forgotPasswordForm input:-webkit-autofill:focus {
  -webkit-text-fill-color: #333 !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
  height: 56px !important;
  border-radius: 12px !important;
}

/* ========================================
   SUBMIT BUTTON — blue gradient
   ======================================== */
body.page-forgotpassword #forgotPasswordForm button[type="submit"] {
  width: 100%;
  height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
  margin-top: 8px;
  flex: 0 0 auto;
  box-sizing: border-box;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(132, 197, 237, 0.4);
}

body.page-forgotpassword #forgotPasswordForm button[type="submit"]:hover {
  background: linear-gradient(135deg, #b9d4eb 0%, #84c5ed 100%);
  box-shadow: 0 6px 24px rgba(132, 197, 237, 0.5);
  transform: translateY(-2px);
}

body.page-forgotpassword #forgotPasswordForm button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(132, 197, 237, 0.3);
}

/* ========================================
   MESSAGES
   ======================================== */
body.page-forgotpassword #resetMessage,
body.page-forgotpassword #resetError {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  text-align: center;
  display: none;
}

body.page-forgotpassword #resetMessage {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 2px solid #b1dfbb;
  color: #155724;
}

body.page-forgotpassword #resetError {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  border: 2px solid #f1b0b7;
  color: #721c24;
}

/* Back to login link */
body.page-forgotpassword #reset-section > div a {
  color: #0369a1;
  text-decoration: none;
  font-weight: 500;
}

body.page-forgotpassword #reset-section > div a:hover {
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  body.page-forgotpassword #forgotPasswordForm {
    padding: 36px;
  }

  body.page-forgotpassword .dashboard-header h2 {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  body.page-forgotpassword #forgotPasswordForm {
    padding: 32px;
  }

  body.page-forgotpassword #forgotPasswordForm input[type="email"] {
    padding: 14px 18px;
    font-size: 14px;
  }

  body.page-forgotpassword #forgotPasswordForm button[type="submit"] {
    height: 48px;
    padding: 0 28px;
    font-size: 15px;
  }

  body.page-forgotpassword .dashboard-header {
    padding: 30px 20px 16px 20px;
  }

  body.page-forgotpassword .dashboard-header h2 {
    font-size: 34px;
  }

  body.page-forgotpassword .dashboard-header p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  body.page-forgotpassword #reset-section {
    width: 95%;
  }

  body.page-forgotpassword #forgotPasswordForm {
    padding: 28px;
    border-radius: 16px;
  }

  body.page-forgotpassword #forgotPasswordForm input[type="email"] {
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
  }

  body.page-forgotpassword #forgotPasswordForm button[type="submit"] {
    height: 46px;
    padding: 0 24px;
    font-size: 14px;
  }

  body.page-forgotpassword #forgotPasswordForm label {
    font-size: 13px;
    margin-bottom: 8px;
  }

  body.page-forgotpassword .dashboard-header {
    padding: 24px 16px 12px 16px;
  }

  body.page-forgotpassword .dashboard-header h2 {
    font-size: 30px;
  }

  body.page-forgotpassword .dashboard-header h2::after {
    width: 60px;
    height: 4px;
    bottom: -8px;
  }

  body.page-forgotpassword .dashboard-header p {
    font-size: 13px;
  }

  body.page-forgotpassword #resetMessage,
  body.page-forgotpassword #resetError {
    font-size: 13px;
  }
}

@media (max-width: 360px) {
  body.page-forgotpassword #reset-section {
    width: 98%;
  }

  body.page-forgotpassword #forgotPasswordForm {
    padding: 24px;
    border-radius: 14px;
  }

  body.page-forgotpassword #forgotPasswordForm input[type="email"] {
    padding: 10px 14px;
    font-size: 12px;
  }

  body.page-forgotpassword #forgotPasswordForm button[type="submit"] {
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
  }

  body.page-forgotpassword .dashboard-header h2 {
    font-size: 26px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
