@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;500;700;1000&display=swap");

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: cairo, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* background: radial-gradient(
      80.24% 71.92% at 50% 1.82%,
      #000000 0%,
      #007bff 100%
    )
    no-repeat; */
    /* height: 100vh; */
}

.form {
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: row;
}

form {
  background-color: #eee;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 500px;
}

.form-head {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 50px;
}

.form-head p {
  font-size: 14px;
  text-align: center;
  color: #082248;
}

.form-head span {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  background: #eee;
  width: fit-content;
  padding: 0 10px;
  border-radius: 4px;
}

h2 {
  font-size: 58px;
  color: #fff;
  font-weight: 100;
}

.form-head span i {
  color: #1d8dd9;
  font-size: 14px;
}

form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 30px;
}

form div {
  margin-bottom: 15px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

.checkbox {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

input[type="checkbox"] {
  margin-right: 5px;
}

button {
  padding: 0 20px;
  background-color: #1d8dd9;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-family: cairo;
  font-size: 25px;
  line-height: 2;
}

.extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.extra a {
  color: #000;
}

.extra span {
  font-size: 13px;
}

.div_auth {
  display: none;
}

p.error {
  color: red;
  text-align: center;
  margin: 0 auto 15px;
  font-size: 17px;
}

b#emailValue {
  color: red;
}

p.error_verify {
  text-align: center;
  color: red;
  background: #eee;
  padding: 5px;
  width: 50%;
  margin: 0 auto;
  border-radius: 5px;
  font-weight: 700;
  display: none;
}

.password {
  position: relative;
}

input#password {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
}

.password .eye-icon {
  position: absolute;
  right: 10px;
  top: 75%;
  transform: translateY(-50%);
  cursor: pointer;
}

.password input[type="password"] {
  padding-right: 30px;
  /* يمنح مسافة كافية للعين أن تظهر جيدًا */
}

.head-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  margin: 25px 0 0;
}

.head-form span {
  letter-spacing: 3px;
  font-size: 14px;
  border-bottom: 1px solid #1d8dd9;
  padding-bottom: 20px;
}

.side-img img {
  width: 450px;
}

/*______________________________________*/

body.dark-mode {
  background: #000;
}

.dark-mode form {
  background-color: #212121;
  color: #fff;
}

.dark-mode .header {
  background-color: #212121;
}

.dark-mode .form-head p {
  color: #fff;
}

.dark-mode .form-head span {
  color: #fff;
  background: #333;
}

.dark-mode [type="email"],
.dark-mode input[type="password"] {
  background: #101010;
  color: #fff;
  border-color: #ffffff4d;
}

.dark-mode .password .eye-icon {
  color: #fff;
}

.dark-mode [type="email"]:focus,
.dark-mode input[type="password"]:focus {
  background: #101010;
  color: #fff;
  border-color: #ffffff4d;
}

.dark-mode input#password {
  color: #fff;
  background-color: #101010;
  border-color: #ffffff4d;
}

.dark-mode .extra a {
  color: #ffff;
}
.dark-mode .auth_authorize_confirm {
  box-shadow: 0px 0px 0px 6px rgb(255 255 255 / 22%);
  border: none;
}
.dark-mode .pincode {
  background: #333;
  border: 1px solid #4f4d4d;
  color: #fff;
}
/*____________________________________*/

@media (max-width: 782px) {
  .form {
    width: 100%;
  }

  .form form {
    width: 95%;
  }

  .logo {
    gap: 5px !important;
  }

  .auth_authorize_confirm {
    width: 380px;
  }
  .side-img {
    display: none;
  }
}

/*________________________________________________________*/

.auth_authorize_confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #eee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-form__back,
.login-form__close {
  background-color: transparent;
  border: none;
  cursor: pointer;
  /* أضف أيقونة back و close هنا */
}

.form-input-top {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: bold;
}

.form-note-auth {
  display: none;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ff0000;
  border-radius: 5px;
  color: #ff0000;
  background-color: #ffebeb;
}

.verification_desc {
  margin-bottom: 10px;
  font-size: 16px;
  text-align: center;
}

.verification_code_div {
  margin-bottom: 20px;
  width: 100%;
}

.verification_code_input {
  display: flex;
  gap: 10px;
}

.pincode {
  width: 90%;
  height: 60px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  font-size: 20px;
  margin: 0 auto;
}

.verification_desc2 {
  font-size: 16px;
}

.login-form__login-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.login-form__login-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/*________________________________________________________*/
