@import url("https://fonts.googleapis.com/css2?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");

:root {
  --bg-secondary: #ace238;
  --bg-primary: #5db996;
  --text-color: #1d1d1d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.container-form {
  width: 45%;
  height: 100vh;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

form {
  width: 28rem;
  background-color: white;
  border-radius: 0.8rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem 2.5rem;
  gap: 2rem;
}

form h2 {
  font-size: 2em;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 2rem;
  align-self: start;
  width: 80%;
  margin-top: -1.5rem;
}

form img {
  width: 8rem;
  height: 7rem;
  align-self: start;
  margin-left: -1.5rem;
}

form .sub-text {
  margin-top: -3.5rem;
  font-weight: 200;
  font-size: 0.9em;
  margin-bottom: 1rem;
  align-self: start;
}

form .input-username {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.input-username span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.input-username span i {
  font-size: 1.3em;
}

.input-username input {
  border: none;
  outline: none;
  width: 100%;
  padding: 0.8rem 0;
  border-bottom: 1px solid black;
}

.input-username div {
  position: relative;
  width: 100%;
}

.input-username div .icon-eye {
  position: absolute;
  right: 1rem;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

.btn-submit {
  padding: 0.8rem 0;
  width: 100%;
  border: none;
  outline: none;
  background-color: var(--text-color);
  color: white;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  border-radius: 0.2rem;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  position: relative;
}

.btn-submit.btn-disabled {
  cursor: not-allowed;
}

form p {
  margin-top: -0.8rem;
  text-align: center;
  font-size: 0.9em;
}

.modal-succes {
  width: 25rem;
  padding: 1.3rem;
  border-radius: 0.8rem;
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.1);
  background-color: white;
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.5s;
  z-index: 8;
}

.modal-succes i {
  font-size: 2em;
  color: var(--bg-secondary);
}

.modal-succes.show-modal {
  opacity: 100%;
  visibility: visible;
  top: 2rem;
}

form .error-message-nik,
form .error-message-password {
  color: red;
  align-self: start;
  margin-top: -1.5rem;
}

.ilustration-form {
  width: 50%;
  height: 100vh;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: relative;
  z-index: 2;
  justify-content: space-around;
}

.ilustration-form .container-img {
  width: 80%;
  position: relative;
}

.container-img img {
  width: 100%;
}

.ilustration-form .text-login {
  margin-top: -3rem;
  width: 30rem;
  text-align: center;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ilustration-form h3 {
  font-weight: 400;
  font-size: 1.6em;
  margin-top: -0.5rem;
  color: #333;
}

.ilustration-form p {
  font-size: 0.9em;
  font-weight: 300;
  text-align: center;
}

.ilustration-form h4 {
  color: var(--bg-primary);
  font-weight: bolder;
}

.ilustration-form .decor-1 {
  width: 7rem;
  height: 7rem;
  right: 0;
  position: absolute;
  bottom: -0.5rem;
}

@media (max-width: 1190px) {
  form {
    width: 26rem;
    margin: 2rem 1rem;
  }

  .ilustration-form {
    width: 48%;
    padding: 1rem;
    justify-content: space-evenly;
  }

  .container-form {
    width: 52%;
    min-height: 100vh;
  }

  .ilustration-form .container-img {
    width: 80%;
  }

  .ilustration-form .text-login {
    width: 95%;
  }
}

@media (max-width: 900px) {
  body {
    flex-direction: column-reverse;
  }

  .container-form {
    width: 100%;
  }
  form h2 {
    margin-bottom: 2.5rem;
  }

  form {
    width: 55%;
    gap: 1.5rem;
    margin: 1rem;
    padding: 2rem;
    justify-content: space-between;
  }

  .ilustration-form {
    width: 100%;
    height: 100vh;
    justify-content: space-around;
  }

  .ilustration-form .container-img {
    width: 65%;
  }

  .ilustration-form .text-login {
    width: 60%;
  }

  .modal-succes {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .container-form {
    width: 100%;
  }

  form {
    width: 65%;
    padding: 1.5rem;
  }

  form h2 {
    font-size: 1.5em;
    margin-bottom: 2rem;
  }

  .ilustration-form {
    justify-content: space-around;
  }

  .ilustration-form .container-img {
    width: 70%;
  }

  .ilustration-form .text-login {
    width: 75%;
  }
}

@media (max-width: 576px) {
  form {
    width: 85%;
    padding: 1.5rem;
  }

  .ilustration-form .container-img {
    width: 90%;
  }

  .ilustration-form .text-login {
    width: 90%;
  }
}

@media (max-width: 428px) {
  form {
    width: 100%;
    padding: 1.5rem;
  }

  form p {
    margin-top: 0;
  }

  .ilustration-form h3 {
    font-size: 1.5em;
  }

  .ilustration-form .decor-1 {
    width: 5rem;
    height: 5rem;
  }

  .register {
    font-size: 0.8em;
  }
}

@media (max-width: 360px) {
  form {
    margin: .5rem;
  }

  form h2 {
    margin-bottom: 3rem;
  }

  .ilustration-form .text-login {
    width: 100%;
  }
}

@media (max-width: 320px) {
  .container-form {
    padding: 1rem 0;
  }

  .btn-submit {
    font-size: 0.9em;
    padding: 0.5rem 0;
  }

  form {
    margin: 0.5rem;
    height: 100%;
    padding: 1rem;
  }

  .ilustration-form h3 {
    font-size: 0.9em;
  }

  .ilustration-form .container-img {
    width: 70%;
  }

  .ilustration-form p {
    font-size: 0.7em;
  }

  .ilustration-form h4 {
    font-size: 0.8em;
    margin-top: 1rem;
  }
}
