/*  forgot-password.css
    Purpose        Styles for the “Forgot / Reset Password” flow:
                     ▸ dark/light-mode form and modal feedback
                     ▸ input & validation states, button hover/focus
                     ▸ responsive single-column layout on mobile
    Works with      forgot-password.html, common-scripts.js, notifications_frontend.js

    Last updated    31 Jul 2025
*/


/* Main Content Wrapper */
.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -75px;
    margin-bottom: 50px;
}

/* Forgot/Reset Password Container */
.password-options-container {
    max-width: 800px;
    margin: 150px auto 0;
    padding: 50px 20px;
    text-align: center;
    flex-grow: 1;
}

.password-options-container h1 {
    font-size: 36px;
    margin-bottom: 40px;
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    margin-top: 50px;
}

/* Form Wrapper to Control Width */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: #333;
    color: white;
}

body.light-mode .input-field {
    background-color: #f9f9f9;
    color: black;
}

.input-field:focus {
    outline: none;
    border-color: #4ea1d3;
}

/* Submit Button */
.password-option-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    background-color: #4ea1d3;
    color: white;
}

.password-option-button:hover {
    background-color: #3b8bb1;
}

/* 'Forgot Password' text and 'Reset Password' title */
.forgot-password-text,
.reset-password-title {
    font-size: 14px;
    color: #ccc;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .password-options-container {
        max-width: 600px;
        padding: 30px 15px;
    }
    
    .password-options-container h1 {
        font-size: 30px;
        margin-bottom: 30px;
    }
    
    .input-field,
    .password-option-button {
        padding: 12px;
        font-size: 16px;
    }
    
    .modal-content {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .password-options-container {
        max-width: 90%;
        margin-top: 100px;
        padding: 20px 10px;
    }
    
    .password-options-container h1 {
        font-size: 26px;
        margin-bottom: 20px;
    }
    
    .input-field,
    .password-option-button {
        padding: 10px;
        font-size: 15px;
    }
    
    .modal-content {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        margin-top: 50px; /* Pushes content down */
    }

    .password-options-container {
        max-width: 90%;
        margin-top: 30px; /* Further pushes down the container */
        padding: 15px 5px;
    }
    
    .password-options-container h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }
    
    .input-field,
    .password-option-button {
        padding: 8px;
        font-size: 14px;
    }
    
    .modal-content {
        width: 220px;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #4ea1d3;
    padding: 20px;
    border-radius: 10px;
    color: #fff;
    width: 300px;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-button {
    background-color: white;
    color: black;
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    border-radius: 5px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #f0f0f0;
}




/* Reset-Email Modal (styled like loading/trial-limit) */
#reset-email-modal {
  position: fixed;
  inset: 0;                             /* top:0; right:0; bottom:0; left:0; */
  display: flex;                        /* center the modal box */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2001;
}
#reset-email-modal.hidden {
  display: none;
}

#reset-email-modal .modal-content {
  position: relative;
  width: 400px;
  max-width: 90%;
  padding: 2rem;
  border-radius: 8px;
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
}

/* OK button inside that modal */
#reset-email-modal .modal-button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  background: #4EA1D3;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Responsive for small screens */
@media (max-width: 430px) {
  #reset-email-modal .modal-content {
    width: 90%;
    padding: 1.5rem;
    font-size: 0.95rem;
  }
}

