/* Font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

.passwordResetPage {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-color);
}

/* Left and Right Panel Layout */
.leftPanel,
.rightPanel {
  flex: 1;
  display: flex;
  height: 100vh;
  width: 50vw;
  justify-content: center;
  align-items: center;
}

/* Left Panel Image */
.leftImage img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Right Panel Layout */
.rightPanel {
  flex-direction: column;
  gap: 20px;
  /* padding: 0 40px; */
}

/* Form Header */
.formHeader {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.formHeader .logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  gap: 10px;
}

.formHeader .logo img {
  height: 5.8rem;
  width: 5.8rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.formHeader .logoText {
  font-size: 1.8rem;
  font-weight: bold;
  color: #3b82f6;
}

.formHeader h1 {
  font-size: 1.5rem;
}

.formHeader p {
  font-size: 1rem;
  color: #242424;
}

/* Form */
.lpForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
  gap: 20px;
}

fieldset {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  width: 100%;
  gap: 8px;
  border: none;
}

.lpForm label {
  font-size: 1rem;
}

.lpForm input {
  display: flex;
  width: 100%;
  height: 44px;
  padding: 18px 16px;
  border-radius: 40px;
  border: 1px solid #d3d3d3;
  background-color: #fcfcfc;
}

.lpForm input:focus {
  outline: 2px solid #007bff;
}

.lpForm .form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

/* Invalid & Valid Field Styles */
.is-invalid {
  border-color: #dc3545;
}

.is-valid {
  border-color: #28a745;
}

/* Submit Button */
.logInButton {
  width: 100%;
  padding: 12px 32px;
  border: none;
  border-radius: 40px;
  background-color: #007bff;
  color: #fcfcfc;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.logInButton:hover {
  background-color: rgba(0, 123, 255, 0.8);
}

/* Messages & Alerts */
.alert {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.alert i {
  margin-right: 0.5rem;
}

.alert .btn-close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Footer / Additional Links */
.forgotPassword {
  text-align: center;
  /* margin-top: 1.5rem; */
}

.forgotPassword a {
  color: #007bff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgotPassword a:hover {
  color: #0056b3;
}

/* Error Messages */
/* Form Error Styling */
.form-error {
  width: 100%;
  color: red;
  font-size: 0.85rem;
  margin-left: 4px;
  text-align: left;
  line-height: 1.2;
  animation: fadeIn 0.3s ease-in-out;
}

/* Fade-In Animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/* --- Responsive Styles --- */

/* For Tablets and Below (max-width: 768px) */
@media (max-width: 768px) {
  .passwordResetPage {
    flex-direction: column;
  }

  .leftPanel,
  .rightPanel {
    width: 100%;
    height: auto;
    flex: none;
    padding: 0;
  }

  .leftImage img {
    max-height: 300px;
  }

  .rightPanel {
    padding: 20px;
  }

  .formHeader .logo img {
    height: 4.5rem;
    width: 4.5rem;
  }

  .formHeader .logoText {
    font-size: 1.5rem;
  }

  .lpForm {
    max-width: 100%;
  }

  .lpForm input {
    padding: 14px 16px;
  }

  .logInButton {
    padding: 12px;
  }

  .forgotPassword a {
    font-size: 0.9rem;
  }
}

/* For Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .passwordResetPage {
    flex-direction: column;
  }

  .leftPanel,
  .rightPanel {
    width: 100%;
    height: auto;
    flex: none;
  }

  .leftImage img {
    max-height: 250px;
  }

  .rightPanel {
    padding: 15px;
  }

  .formHeader .logo img {
    height: 4rem;
    width: 4rem;
  }

  .formHeader .logoText {
    font-size: 1.2rem;
  }

  .formHeader h1 {
    font-size: 1.2rem;
  }

  .formHeader p {
    font-size: 0.9rem;
  }

  .lpForm {
    max-width: 100%;
    gap: 15px;
  }

  .lpForm label {
    font-size: 0.9rem;
  }

  .lpForm input {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .logInButton {
    padding: 12px;
    font-size: 0.9rem;
  }

  .forgotPassword a {
    font-size: 0.9rem;
  }
}