
body{
  background-color: var(--Main-Green-Dark---1);
}
.login_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: auto;
  border: none;
}

.first_page {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.left {
  background-color: var(--Main-Green-Dark---1);
  flex: 1;
}

.logo-container {
  height: 100%;
}

.logo {
  max-width: 500px;
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
  padding: 40px
}

.right {
  flex: 1;
  margin: 0;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.form-container {
  background-color: var(--Main-Green);
  padding: 30px;
  border-radius: 12px;
  width: 80%;
  height: 80%;
}

.tabs {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 40px;
}

.tab-link {
  background-color: transparent;
  color: var(--clr-font-light);
  border: none;
  font-size: 18px;
  margin: 0 10px;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.tab-link.active {
  border-bottom: 2px solid var(--Main-Gray-Light---3);
}

.form-title {
  text-align: center;
  color: var(--clr-font-light);
  margin-bottom: 20px;
  font-size: 24px;
}

.forms {
  background-color: var(--Main-Green);
  padding: 20px;
  width: 100%;
  max-width: 600px;
  height: 100%;
  overflow-y: auto;
  border-radius: 10px;
  box-sizing: border-box;
  margin-top: 50px;
  position: relative;
}

.forms h2 {
  font-family: "Cairo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 6rem;
  font-variation-settings: "slnt" 0;
  margin: 40px;
  padding: 20px;
}

#login form,
#register form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
}

#login input, #register input {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
}

#login input[type="text"],
#login input[type="password"] {
  width: 80%;
  height: 70px;
  padding: 15px;
  border-radius: 30px;
  background-color: var(--Main-Gray-Light---3);
  color: #333;
  font-size: 16px;
  margin-bottom: 15px;
  box-sizing: border-box;
  margin: 0 auto;
  margin-bottom: 10px;
}

#login input::placeholder,
#register input::placeholder {
  color: var(--Main-Green-Light---2);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 10px 30px;
}

#login label,
#register label {
  color: var(--clr-font-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 20px;
  gap: 10px;
  font-size: 18px;
}

#login input[type="checkbox"],
#register input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkmark {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 2px solid var(--Main-Gray-Light---3);
  border-radius: 20px;
  transition: all 0.3s;
}

#login input[type="checkbox"]:checked ~ .checkmark,
#register input[type="checkbox"]:checked ~ .checkmark {
  background-color: var(--Main-Gray-Light---3);
  border-color: var(--Main-Gray-Light---3);
}

#login input[type="checkbox"]:checked ~ .checkmark:after,
#register input[type="checkbox"]:checked ~ .checkmark:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 10px;
  border: solid rgb(0, 0, 0);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

#login:hover input[type="checkbox"] ~ .checkmark,
#register:hover input[type="checkbox"] ~ .checkmark {
  border-color: var(--Main-Gray-Light---3);
}

#login input[type="checkbox"]:disabled ~ .checkmark,
#register input[type="checkbox"]:disabled ~ .checkmark {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-btn {
  width: 70%;
  margin: 0 auto;
  padding: 10px;
  background-color: #124076;
  border: none;
  border-radius: 30px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-font-light);
  height: 45px;
  text-align: center;
}

.submit-btn:hover {
  background-color: var(--Main-Green-Dark---1);
}

.tab-content {
  display: none;
  transition: opacity 0.3s ease-in-out;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

@media (max-width: 768px) {
  .login_container {
    height: auto;
  }
  .first_page {
    flex-direction: column-reverse;
  }
  .logo {
    display: none;
  }
  .right {
    height: auto;
  }
  .submit-btn {
    position: static;
  }
  .form-title::before {
    content: url("/images/sepand 4 (1).svg");
  }
  .forms {
    height: auto;
  }
  .captcha {
    flex-direction: column-reverse;
    input[name="captcha_input"] {
      width: 100% !important;
    }
  }
}

@media (min-width: 1440px) {
  html {
    font-size: 65%;
  }

  .container {
    max-width: 90%;
  }

  .login_container {
    max-width: 1200px;
    height: 85vh;
  }

  .form-container {
    width: 85%;
    height: 85%;
  }

  .forms {
    max-width: 700px;
    margin-top: 80px;
  }

  .submit-btn {
    width: 80%;
  }
}

@media (min-width: 1920px) {
  html {
    font-size: 70%;
  }

  .login_container {
    max-width: 1300px;
    height: 90vh;
  }

  .form-container {
    width: 85%;
    height: 90%;
  }

  .forms {
    max-width: 800px;
    margin-top: 90px;
  }

  .submit-btn {
    width: 85%;
  }
}

@media (min-width: 2560px) {
  html {
    font-size: 75%;
  }

  .container {
    max-width: 95%;
  }

  .login_container {
    max-width: 150vh;
    height: 100%;
    max-height: 70vh;
  }

  .form-container {
    width: 90%;
    height: 95%;
  }

  .forms {
    max-width: 1000px;
    margin-top: 100px;
  }
  .checkbox-container {
    margin: 20px 40px;
  }

  #login label,
  #register label {
    font-size: 2rem;
  }

  .submit-btn {
    width: 90%;
    height: 60px;
    font-size: 2rem;
    border-radius: 30px;
    position: absolute;
    bottom: 39px;
    left: 20px;
  }


  .submit-btn {
    width: 90%;
    height: 60px;
  }

  .logo-container {
    width: 50%;
  }

  .logo {
    width: 450px;
  }
  #login input{
    width: 100% !important; 
    height: 7vh !important;
    font-size: 2rem !important;
    border-radius: 40px !important;
    margin-bottom: 20px;

  }
  .forms{
    padding: 10%;
  }
  #login input::placeholder{
    font-size: 2rem;
  }
  .checkmark{
    width: 30px;
    height: 30px;
  }
  #login input[type="checkbox"]:checked ~ .checkmark:after{
    top: 2px;
    left: 8px;
    width: 11px;
    height: 19px;
    border-width: 0 4px 4px 0;
  }
}

@media (min-width: 3000px) {
  html {
    font-size: 80%;
  }

  .container {
    max-width: 100%;
  }

  .login_container {
    max-width: 150vh;
    height: 100%;
    max-height: 70vh;
  }

  .form-container {
    width: 95%;
    height: 95%;
  }

  .forms {
    max-width: 1100px;
  }

  .submit-btn {
    width: 85%;
    height: 70px;
  }
}
