html {
  height: 100vh;
}

body {
  height: 100%;
  background-color: white;
}

.container-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 1;
  top: -40px;
}

.form {
  display: flex;
  flex-direction: column;
  padding: 50px 100px;
  border-radius: 15px;
  row-gap: 35px;
  box-shadow: 0 5px 20px -5px rgba(0, 0, 0, 0.4);
  max-width: 350px;
  position: relative;
  background: white;
}

.wrapper-lang {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  height: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  column-gap: 1px;
  color: black;
  width: 45px;
}

.login-switch-lang {
  height: 20px;
  box-shadow: 0 0 10px 0px transparent;
  transition: .3s ease;
  transform: scale(1);

  &:hover {
    box-shadow: 0 0 10px 0px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
  }
}

.row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: relative;
}

.login-input {
  border-radius: 5px;
  border: none;
  box-shadow:
    0 3px 10px 0px rgba(0, 0, 0, 0.4),
    0 0 5px 0px transparent inset;
  height: 40px;
  width: 350px;
  transition: .2s ease;
  text-indent: 5px;

  &:focus-within {
    outline: none;
    box-shadow:
      0 0 0 0 var(--main-color),
      0 0 0 2px var(--main-color) inset;
  }

  &.error, &:focus-within.error {
    box-shadow:
      0 0 0 0 var(--error),
      0 0 0 2px var(--error) inset;
  }
}

.error-icon {
  color: var(--error);
  position: absolute;
  right: 2px;
  display: none;
  top: 50%;
  transform: translateY(-50%);
}

input.error + .error-icon {
  display: block;
}

.error-login {
  color: var(--error);
  display: none;
  text-align: center;

  &.active {
    display: block;
  }

  .form:has(.login-input.error) & {
    display: block;
  }
}

.submit-btn {
  border: none;
  /* background: var(--main-color); */
  background-image: var(--default-gradient);
  padding: 5px 0px;
  border-radius: 5px;
  box-shadow: 0 3px 10px 0px rgba(0, 0, 0, 0.4);
  transition: all .2s ease;
  color: white;
  cursor: pointer;
  position: relative;
  will-change: transform;

  &:focus-visible {
    outline: 2px solid black;
  }

  &:hover {
    box-shadow: 0 3px 10px 2px rgba(0, 0, 0, 0.6);
  }
}

.welcomer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 20px;
  position: relative;
  box-shadow: 0 0 25px 25px rgba(255, 255, 255, 1);
  background: white;
  padding: 10px;
  border-radius: 10px;
  top: -40px;
  
  & * {
    font-size: revert;
    font-weight: revert;
  }
}