/* sign in FORM */
html,
body {
  background-image: url("../images/background-img.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  font-family: "Numans", sans-serif;
  overflow: hidden;
}

/* Signup Form Container */
.form-signup {
  /* border: 1px solid red; */
  max-width: 420px;
  display: none;
  margin: 110px auto;
  padding: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
/*  */
/* Inputs */
.form-control-1 {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 5px;
  border: 1px solid #ddd;
  /* border: 1px solid red; */
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-1:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #555;
  font-size: 1.2rem;
}

.toggle-password:hover {
  color: #000;
}

/* Small text hints and errors */
.hint-text {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: #d9534f;
}

.error-text {
  color: #d9534f;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Flash message */
.alert {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 0.95rem;
  display: none;
}

.alert.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Buttons */
.btn-block-1 {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.btn-primary-1 {
  /* background: #044283; */
  background: #007bff;
  border: none;
  color: #fff;
}

.btn-primary-1:hover {
  background: #0069d9;
}

/* Back link */
.back-link {
  display: inline-block;
  cursor: pointer;
  margin-top: 15px;
  color: #007bff;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* Signin Form Container */
.form-signin {
  max-width: 400px;
  margin: 120px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Title */
.form-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

/* Error message */
.error-msg {
  color: #d9534f;
  text-align: center;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* Inputs */
.form-control {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Password wrapper */
.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #666;
  font-size: 1.2rem;
}

.toggle-password:hover {
  color: #000;
}

/* Buttons */
.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.btn-success {
  background: #007bff;
  border: none;
  color: #fff;
}

.btn-success:hover {
  background: #0069d9;
}

.btn-primary {
  background: #007bff;
  border: none;
  color: #fff;
}

.btn-primary:hover {
  background: #0069d9;
}

/* Forgot password link */
.forgot-link {
  display: block;
  text-align: right;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #007bff;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}
/* FORGOT PASSWORD MODAL, OTP Reset Password VERIFICATION MODAL, RESET PASSWORD MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.close-btn {
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
}

.modal-body input {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.3s;
}
.modal-body input:focus {
  border-color: #007bff;
  outline: none;
}
.btn-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
/* ===== Buttons ===== */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn.success {
  background: #007bff;
}

.btn.success:hover {
  background: #0056b3;
}

/* ===== Links ===== */
.back-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #007bff;
  text-decoration: none;
  text-align: center;
}
.back-link:hover {
  text-decoration: underline;
}

/* ===== Password Toggle & Meter ===== */
.password-wrapper {
  position: relative;
}
.password-wrapper input {
  padding-right: 40px;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #666;
}
.toggle-password:hover {
  color: #007bff;
}
.strength-meter {
  height: 5px;
  border-radius: 4px;
  margin-top: 5px;
  background: #e0e0e0;
}
.strength-meter.fill-weak {
  background: red;
}
.strength-meter.fill-medium {
  background: orange;
}
.strength-meter.fill-strong {
  background: green;
}

/* =====  Forgot Alerts flash message css ===== */
#forgotMsg,
#otpMsg,
#resetMsg {
  display: block; /* make container visible */
  min-height: 24px; /* reserve space for messages */
  margin-bottom: 10px;
  font-size: 14px;
}
.alert {
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.alert-success {
  background: #d4edda;
  color: #155724;
}
.alert-error {
  background: #f8d7da;
  color: #721c24;
}
/* OTP → Reset flash message css */
.flash {
  padding: 8px;
  margin-top: 10px;
  border-radius: 5px;
  font-size: 14px;
}

.flash-success {
  background: #d4edda;
  color: #155724;
}

.flash-error {
  background: #f8d7da;
  color: #721c24;
}
/* OTP REGISTRATION Modal  */
.otpModal-backdrop-unique {
  /* border: 1px solid red; */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.otpModal-box-unique {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  margin: 140px auto;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}
.otpModal-box-unique h2 {
  margin-top: 0;
}
.otpModal-inputs-unique {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0;
}
.otpModal-inputs-unique input {
  width: 45px;
  height: 50px;
  text-align: center;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.otpModal-inputs-unique input:focus {
  border-color: #000;
}

.otpModal-close-unique {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}
#otpResendBtn {
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}
#otpResendBtn:hover {
  background: #0056b3;
}
/* Spinner style */
.resend-otp-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 480px) {
  .otpModal-box-unique {
    max-width: 95%;
    padding: 15px;
  }

  .otpModal-inputs-unique {
    gap: 6px;
    justify-content: center;
  }

  .otpModal-inputs-unique input {
    width: 38px;
    height: 45px;
    font-size: 1rem;
  }
}