 /* Initially hide the main content */




/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

body {
  background: linear-gradient(to bottom right, #0070d3, #000);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  direction: rtl;
}

.incorectuserinfo{
  display: none;
  color: red;
}

.loginContainer {
  background: white;
  width: 100%;
  max-width: 500px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.loginHeader {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
}

.loginInput {
  margin-bottom: 20px;
}

.loginInput label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.loginInput input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.passwordlogindiv {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  height: 7%;
  margin-bottom: 15px;
}

.passwordlogindiv input {
  border: none;
  flex: 1;
  margin: 10px -5px 10px 10px;
}
.passwordlogindiv1 {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  height: 45px;
  margin-bottom: 15px;
}
.passwordlogindiv1 input {
  border: none;
  flex: 1;
  /* margin: 10px -5px 10px 10px; */
}
.Rj_show_pass_input{
  border: none;
  padding: 0px 10px 10px 10px;
}
.ShowHidepassword {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: auto;
}




.pic_pass_show_forgot{
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: auto;}

.pass_forgot_input{
  border: none;
}







/* .error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
} */



.rememberMe {
  margin-bottom: 10px;
}

#loginButton, .enteryRegisterButton {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  margin-bottom: 10px;
}

#loginButton {
  background: #0070d3;
  color: white;
}

#loginButton:disabled {
  background: #ccc;
  cursor: not-allowed;
  
}

.enteryRegisterButton {
  background: #28a745;
  color: white;
}

.or-text {
  margin: 10px 0;
  color: #555;
}

.popup, .forgotpasspopup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 500px;
  text-align: center;

}

.popup .close, .forgotpasspopup .close {
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

.registerButton {
  width: 100%;
  padding: 10px;
  background: #0070d3;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
}


/* ////////////////////////////////////////// */




.forgot-password {
  color: #0070d3;
  cursor: pointer;
  margin-bottom: 10px;
  width: 170px;
  text-align: center;
}

.forgotpasspopup {
  display: none;
  position: fixed;
  z-index: 1000; /* Ensure it's on top */
  top: 50%;
  left: 50%;
  width: 100%;
  height: 80%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.forgotpopup-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  width: 90%; /* Responsive width */
  max-width: 500px; /* Maximum width */
  position: relative;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-left: 10px;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
}

.forgotpopup-content h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.forgotpopup-content label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.forgotpopup-content input[type="email"],
.forgotpopup-content input[type="password"],
.forgotpopup-content input[type="number"]{
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}


.error-message {
  color: red;
  font-size: 0.9em;
  margin-top: 5px;
  /* display: none; Initially hidden */
}

.forgotpopup-content button {
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.forgotpopup-content button:hover {
  background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 400px) {
  .forgotpopup-content {
      padding: 15px;
  }

  .forgotpopup-content h2 {
      font-size: 1.2em;
  }
}


/* /////////////////////////////////////////////// */
/* Responsive Styles */
@media (max-width: 600px) {
  .loginContainer {
    padding: 15px;
  }

  .loginHeader {
    font-size: 20px;
  }

  .loginInput input {
    font-size: 14px;
  }

  .popup, .forgotpasspopup {
    width: 95%;
  }
}











/* استایل‌های جدید برای بخش OTP */
.otp-input-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#tow_factor_code_login {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  font-size: 18px;
}

.resend-otp-btn {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.resend-otp-btn:hover {
  background-color: #e0e0e0;
}

.info-message {
  display: block;
  margin-top: 5px;
  color: #28a745;
  font-size: 14px;
}