/* to hide join in button */
.btn-packages {
  display: none;
}

.account-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.account-form {
  background-color: #222;
  border-radius: 5px;
  padding: 40px;
  color: white;
}

.account-page .form-control {
  text-align: center;
  font-weight: 400;
  height: 70px;
}

.input-box {
  position: relative;
}

.input-box label {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease-in-out, font-size 0.3s ease-in-out;
  z-index: 5;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 300;
  color: rgb(131, 131, 131);
  pointer-events: none;
  height: 70px;
  white-space: nowrap;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label,
.input-box input:-webkit-autofill + label {
  transform: translate(-50%, -100%);
  font-size: 20px;
  top: 49px;
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 2px 3px #000;
}

.account-page h1 {
  color: white;
  font-weight: 900;
  font-size: 2.5rem;
}

.link-section label,
.link-section a,
.account-others p,
.account-others a,
.account-others li {
  font-size: 16px;
  color: white;
  line-height: 1.8;
  font-weight: 300;
}

/*to remove asteriks from required fields in the forms*/
.asteriskField {
  display: none;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border: 2px solid #ff8c55;
  background-image: none;
  background-color: #fce1cf;
}

.invalid-feedback {
  font-size: 80%;
  color: #ff8c55;
  transition: transform 0.3s ease-in-out; /* Add a transition for smooth animation */
}

.form-check-input {
  width: 15px;
  height: 15px;
}

.register .link-section label {
  margin-left: 10px;
}
input[type="checkbox"] {
  accent-color: #418d8d;
}

.link-section .invalid-feedback {
  margin-left: 10px;
}

.btn-primary {
  color: #222;
  background-color: #418d8d;
  border-color: #418d8d;
  font-weight: 800;
  padding: 4% 10%;
  border-radius: 0;
  font-size: 1.2rem;
}
.btn-primary:hover {
  color: #222;
  background-color: #75acac;
  border-color: #75acac;
}
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  color: #222;
  background-color: #177979;
  border-color: #177979;
}
.btn-primary:not(:disabled):not(.disabled).active:focus,
.btn-primary:not(:disabled):not(.disabled):active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  color: #222;
  box-shadow: 0 0 0 0.2rem #347a79;
}
.btn-primary.focus,
.btn-primary:focus {
  color: #222;
  background-color: #418d8d;
  border-color: #418d8d;
  box-shadow: 0 0 0 0.2rem #418d8d;
}

.alert-warning {
  margin-top: 50px;
  color: #ffffff;
  background-color: #c38654;
  border-color: #fba804;
  font-weight: 600;
  text-align: center;
}
.alert-warning p {
  margin: 0;
}
.register .form-check-input.is-invalid ~ .form-check-label,
.register .was-validated .form-check-input:invalid ~ .form-check-label {
  color: #ffffff;
}

.account-others p {
  line-height: 1.75rem;
}

@media (min-width: 576px) {
  .account-form {
    width: 380px;
    padding: 60px 40px;
  }
  .account-page h1 {
    font-size: 2.8rem;
  }
  .account-page .form-control {
    height: 70px;
    font-size: 1.1rem;
  }
  .input-box label {
    font-size: 25px;
    top: 45px;
  }
  .link-section label,
  .link-section a,
  .account-others p,
  .account-others a,
  .account-others li {
    font-size: 17px;
    line-height: 2;
  }
  .form-check-input {
    margin-top: 0.5rem;
    width: 20px;
    height: 20px;
    margin-right: 7px;
  }
  .register .link-section label {
    margin-left: 10px;
  }
}

@media (min-width: 992px) {
  .account-form {
    width: 450px;
    padding: 70px 60px;
  }
  .account-page h1 {
    font-size: 3.5rem;
  }
  .account-page .form-control {
    height: 70px;
    font-size: 1.3rem;
  }
  .input-box label {
    font-size: 30px;
  }
  .link-section label,
  .link-section a,
  .account-others p,
  .account-others a,
  .account-others li {
    font-size: 18px;
    line-height: 2.2;
  }
  .form-check-input {
    margin-top: 0.7rem;
  }
  .register .link-section label {
    margin-left: 15px;
  }
  .link-section .invalid-feedback {
    margin-left: 15px;
  }
  .btn-primary {
    font-size: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .account-form {
    width: 550px;
    padding: 100px 80px;
  }
  .account-page h1 {
    font-size: 4rem;
  }
  .account-page .form-control {
    height: 70px;
  }
  .input-box label {
    font-size: 30px;
  }
  .link-section label,
  .link-section a,
  .account-others p,
  .account-others a,
  .account-others li {
    font-size: 20px;
    line-height: 2.2;
  }
  .form-check-input {
    margin-top: 0.8rem;
  }
  .register .link-section label {
    margin-left: 20px;
  }
  .link-section .invalid-feedback {
    margin-left: 20px;
  }
  .btn-primary {
    font-size: 1.8rem;
  }
}

/*override width form for register page*/

@media (min-width: 576px) {
  .register {
    width: 450px;
  }
}

@media (min-width: 768px) {
  .register {
    width: 630px;
  }
}

@media (min-width: 992px) {
  .register {
    width: 750px;
  }
}

@media (min-width: 1200px) {
  .register {
    width: 800px;
  }
}
