*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 2px solid blue; */
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  padding: 50px;
  height: 100%;
}

.container {
  height: 80vh;
  width: 100%;
  background-color: #efefef;
}

main {
  display: flex;
  min-height: 100%;
}

.image-section {
  position: relative;
}

.image-section img {
  height: 100%;
  width: 50vw;
}

.empowering-section {
  position: absolute;
  background-color: black;
  color: rgb(255, 255, 255, 0.8);
  opacity: 0.8;
  font-size: 25px;
  font-weight: 900;
  width: 410px;
  padding: 40px 15px;
  bottom: 130px;
  right: 0;
}

.form-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.form-section form img {
  width: 80px;
  margin: 20px 0;
  display: flex;
  align-self: center;
}

.form-section form {
  display: flex;
  flex-direction: column;
}

.spinner-container {
  display: none;
  width: 50px;
  height: 50px;
  position: absolute;
  bottom: 55%;
  left: 45%;
  border-radius: 50%;
  background-color: rgb(96, 88, 88, 0.7);
}

.spinner {
  display: none;
  width: 30px;
  height: 30px;
  border: 3px solid grey;
  border-top: 3px solid white;
  border-radius: 50%;
  margin: 10px auto;

  animation: spin 0.5s linear 5;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#network-error {
  font-size: clamp(0.5rem, 2.5vw, 1rem);
  display: none;
  justify-content: space-between;
  margin-top: 30px;
  position: relative;
  width: 100%;
  background-color: rgb(255, 198, 40);
  margin-left: 30px;
  margin-top: -25px;
  border-radius: 5px;
  margin-right: 0;
}

#network-error img {
  width: 27px;
  height: 27px;
}

.warning-icon {
  position: absolute;
  left: 10px;
}

.cancel-icon {
  position: absolute;
  right: -10px;
  top: -35px;
}

#network-error div {
  font-size: 14px;
  margin: 20px;
  width: 100%;
  padding: 0 30px;
}

#network-error span {
  font-weight: 800;
}

#network-error ul li {
  list-style-position: inside;
  margin-left: 5px;
  margin-top: 10px;
}

#network-error ul li::marker {
  color: rgb(24, 23, 23);
}

.email-input,
.password-input,
.language-input {
  display: flex;
  margin: 10px;
  text-align: center;
  align-items: center;
}

.email-input label,
.password-input label,
.language-input label {
  width: 100px;
  font-weight: 500;
}
.email-input input,
.password-input input,
.language-input select {
  padding: 10px;
  border: 1px solid lightgray;
  outline: none;
  width: 300px;
  background-color: whitesmoke;
}

.email-input input,
.password-input input {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
}

.language-input select {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 500;
  font-size: medium;
  max-width: 90px;
  background-color: white;
}

.copyright-section {
  font-size: 12px;
  margin-left: 12px;
  margin-bottom: 12px;
}

.login-section {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-left: 60px;
}

.login-section button {
  background: none;
  border: none;
  background-color: white;
  padding: 10px 15px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  font-weight: 500;
}

#login-button {
  background-color: rgba(87, 87, 244, 0.5);
  color: white;
}

.forget-password {
  text-align: center;
  width: 90%;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  color: blue;
}

footer {
  display: flex;
  gap: 50px;
  margin-top: 20px;
  font-size: larger;
  font-weight: 500;
}

.version,
.powered {
  color: rgb(42, 41, 41, 0.9);
}

.powered span {
  color: rgba(42, 42, 241, 0.9);
}

/* Phone Styles */

@media (max-width: 768px) {
  body {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  .container {
    width: 100dvw;
    max-width: 100%;
    height: 100dvh;
  }

  main {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: fit-content;
  }

  .image-section {
    max-width: 100%;
  }

  .image-section img {
    width: 100%;
    height: 50dvh;
  }

  .empowering-section {
    width: 70%;
    bottom: 15px;
    right: 50px;
    text-align: center;
  }

  .form-section {
    max-width: 100%;
  }

  .form-section form {
    max-width: 100%;
  }

  .login-section {
    margin-left: 0;
    margin-top: 10px;
    max-width: 100%;
    gap: 50px;
  }

  .email-input,
  .password-input,
  .language-input {
    flex-direction: column;
  }

  .email-input input,
  .password-input input,
  .language-input select {
    margin-top: 10px;
  }

  #register-button {
    background-color: rgb(182, 182, 234);
    color: white;
  }
}

.copyright-section {
  margin-top: 20px;
  text-align: center;
}

.version {
  font-size: smaller;
}

.powered {
  font-size: smaller;
}

#network-error {
  margin: auto;
  width: 90%;
}
