#container {
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  /* Evita desbordamiento accidental */
}

#article-2 {
  background-image: url(/img/bg-img/bg-3-opacity.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  background-position: center center;
  align-items: center;
  display: flex;
  justify-content: center;
}

#login-container {
  background: rgb(0, 0, 0, 0.2);
  backdrop-filter: blur(0.5rem);
  border-radius: 2rem;
  border: 0.1px solid #ecf4d52d;
}

h1 {
  color: #ecf4d5;
  font-family: 'Zodiak', serif;
}

.form-svg {
  width: 32px;
  height: 32px;
  color: #ecf4d5;
  margin-right: 10px;
}

.form-input {
  background-color: rgb(255, 255, 255, 0.5);
  color: #393e46;
  border: 1px solid #393e46;
  height: 50px;
  transition: all 0.5s ease;
  font-family: 'Zodiak', serif;

}

.form-input:focus {
  background-color: rgb(0, 0, 0, 0.5);
  color: #ecf4d5;
  border: 1px solid #ecf4d5;
  box-shadow: none;

}

.form-input:focus::placeholder {
  color: #ecf4d5;
  opacity: 30%;
}

.form-input::placeholder {
  color: #393e46;
  opacity: 90%;
}

#terms>label {
  color: #ecf4d5;
}

#terms>label>a {
  color: #9Ad0c2;
}

#terms-check {
  box-shadow: none;
  transition: all 0.5s ease;
}

#terms-check:checked {
  background-color: #9Ad0c2;
  box-shadow: none;
}

.form-button {
  width: 200px;
  padding: 10px 25px;
  font-weight: 500;
  background: transparent;
  outline: none !important;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  border-radius: 0.375rem;
}

.form-button {
  border: 2px solid #ecf4d5;
  z-index: 1;
  color: #ecf4d5;
}

.form-button:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  background: #ecf4d5;
  transition: all 0.3s ease;
}

.form-button:hover {
  color: #393e46;
}

.form-button:hover:after {
  top: 0;
  height: 100%;
}

.form-button:active {
  top: 2px;
}

.validation {
  padding-left: 4rem;
  padding-bottom: 0.5rem;
  color: #b23a48;
  font-weight: 700;
  transition: all 0.5s ease;
  user-select: none;
  font-family: 'Clash Display', sans-serif;
}

.show {
  opacity: 100%;
}

.hidden {
  opacity: 0;
}

.validationVisual>svg {
  width: 42px;
  height: 42px;
}

.validationVisual {
  transition: all 0.5s ease;
}

.invalid {
  width: 42px;
  height: 42px;
  color: #b23a48;
}

.valid {
  width: 42px;
  height: 42px;
  color: #9Ad0c2;
}

.confirm {
  position: absolute;
  display: flex;
  right: 165px;
  height: 50px;
}

.confirm button {
  all: unset;
}

.confirm button>svg {
  color: #393e46;
  width: 1.5rem;
  height: 1.5rem;
}

#errorModal {
  z-index: 1000000000000000000;
}

#errorModal>div>div {
  background-color: #393e469d;
  backdrop-filter: blur(10px);
  border: 1px solid #ecf4d5;
}

#errorModal>div>div div {
  color: #ecf4d5;
}

#closeModal>button {
  color: #ecf4d5;
  background-color: #393e46;
  border: 1px solid #ecf4d5;
}

.hidden-checkbox {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid #ecf4d5;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.checkbox-text {
  font-family: 'Zodiak', serif;
  font-size: 14px;
  vertical-align: middle;
  cursor: default;
  /* no pointer cursor on text */
  color: #ecf4d5;
}

.hidden-checkbox:checked+.custom-checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  background-color: transparent;
}

.hidden-checkbox:checked+.custom-checkbox {
  background-color: #393e46;
  border-color: #393e46;
  color: #ecf4d5;
}

#togglePassword {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #393e46;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#togglePassword svg {
  display: block;
  /* elimina espacio extra alrededor */
  width: 30px;
  height: 30px;
  color: #393e46;
}

.alert-danger {
  width: 80%;
  margin-left: 10% !important;
  text-align: center;
}

#inputPassword {
  padding-right: 2.5rem;
  /* espacio suficiente para el botón */
}

@media (max-width: 1399px) {
  .confirm {
    right: 160px;
  }
}

@media (max-width: 1199px) {
  .confirm {
    right: 155px;
  }

}

@media (max-width: 991px) {
  .confirm {
    right: 140px;
  }

}

@media (max-width: 767px) {
  .confirm {
    right: 65px;
  }

  #inputEmail,
  #inputPassword {
    margin-left: 5px;
  }

  #remember {
    margin-left: 10px;
  }
}