* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}
body {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  background: rgb(78, 89, 109);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/Images/BG image.png");
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  z-index: -1;
  opacity: 0.8;
}
.form-container {
  position: fixed;
  height: 93vh;
  width: 560px;
  /* border: 0.1px solid; */
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.25);
  background-color: #ffffff;
  /* position: fixed; */
  border-radius: 12px;
  display: flex;
  justify-content: center;
  margin-top: 25px;
  position: relative;
  z-index: 2;
}
.form {
  height: 90%;
  width: 90%;
  /* border: 1px solid black; */
  margin: 0;
  padding: 20px;
  margin-top: 25px;
}
.details {
  /* background-color: rgb(128, 74, 74); */
  display: flex;
  flex-direction: column;
  margin-top: 15px;
}
.details input {
  width: 100%;
  height: 45px;
  border-radius: 50px;
  border: none;
  background-color: #f3f1f8;
  margin: 5px 0;
  padding: 0 15px;
  /* font-size: 15px; */
}
.passwordinput {
  font-size: 14px;
}
.password-box {
  position: relative;
  width: 100%;
}

.password-box input {
  width: 100%;
  padding-right: 45px;
}

.toggle-password {
  position: absolute;
  right: 17px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 5;
}

.toggle-password:hover {
  color: #555;
}
.details input:focus {
  outline: none;
}
.details input::placeholder {
  font-size: 30px;
}
.details input:hover {
  border: 1px solid gray;
}
.unps {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.3;
}
h {
  font-size: 28px;
  font-weight: 500;
}
.checkbox {
  display: flex;
  gap: 10px;
  margin-top: 25px;
  font-size: 15px;
}
.checkbox p {
  opacity: 0.3;
}
.checkinput {
  transform: scale(1.2);
}
input[type="checkbox"] {
  accent-color: #c35a63;
  cursor: pointer;
}
.forgot p {
  margin-top: 20px;
  text-decoration: underline;
  cursor: pointer;
}
.captcha {
  margin-top: 25px;
  display: flex;
  justify-content: flex-start;
  width: 100%;
}
.loginbtn,
.googlebtn {
  width: 100%;
  height: 45px;
  border-radius: 50px;
  border: none;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loginbtn {
  width: 100%;
  height: 45px;
  border-radius: 50px;
  border: none;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3bad5;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
  transition: 0.3s;
}

.loginbtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loginbtn:not(:disabled) {
  background-color: #db4d95;
  cursor: pointer !important;
}

.loginbtn:not(:disabled):hover {
  background-color: #c93b83;
  cursor: pointer !important;
}

.loginbtn:not(:disabled):hover {
  background-color: #c93b83;
}

.googlebtn {
  background-color: #f3f1f8;
  margin-top: 15px;
}
.loginbtn:hover {
  cursor: not-allowed;
}
.googlebtn:hover {
  background-color: #eaeaea;
  cursor: pointer;
}
.goglelogo {
  width: 20px;
  margin-right: 10px;
}
.register {
  text-align: center;
  margin-top: 20px;
  color: #db4d95;
  text-decoration: underline;
  cursor: pointer;
}
.close-btn {
  position: absolute;
  top: -47px;
  right: -47px;

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background-color: #f3f1f8;
  color: #999;

  font-size: 25px;
  font-weight: 300;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  z-index: 10;
}
/* Input wrapper */
.input-box,
.password-box {
  position: relative;
  width: 100%;
}

/* Red border for invalid input */
.input-box.invalid input,
.password-box.invalid input {
  border: 1px solid #ff5266 !important;
}

/* Error message */
.email-error,
.password-error {
  display: none;
  color: #ff5266;
  font-size: 12px;
  margin-top: -2px;
}

/* Show error */
.email-error.show,
.password-error.show {
  display: block;
}

/* Error icon */
.error-icon {
  display: none;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);

  width: 20px;
  height: 20px;
  border-radius: 50%;

  background: #ff5266;
  color: white;

  font-size: 14px;
  font-weight: bold;

  align-items: center;
  justify-content: center;
}

.input-box.invalid .error-icon,
.password-box.invalid .error-icon {
  display: flex;
}

/* Keep eye icon visible */
.password-box.invalid .toggle-password {
  right: 40px;
}
/* Space for error icon and eye icon */
.password-box input {
  padding-right: 75px !important;
}

/* Error message spacing */
.email-error,
.password-error {
  line-height: 16px;
  margin-bottom: 5px;
}

/* Password eye icon position */
.password-box.invalid .toggle-password {
  right: 40px;
}
/* Form height auto adjustment */

body {
  min-height: 100vh;
  height: auto;
  align-items: flex-start;
}

/* Main form container */

.form-container {
  height: auto;
  min-height: 93vh;
  max-height: none;
  margin-top: 25px;
  margin-bottom: 25px;
  overflow: visible;
}

/* Form content */

.form {
  height: auto;
  min-height: 90%;
  padding-bottom: 35px;
}

/* Error messages */

.email-error,
.password-error {
  line-height: 16px;
  margin-bottom: 5px;
}

/* Register button */

.register {
  margin-top: 20px;
  padding-bottom: 10px;
}
/* Login button loading spinner */

.loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-top: 3px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loginbtn.loading {
  background-color: #db4d95;
  cursor: wait;
}

.loginbtn.loading .btn-text {
  display: none;
}

.loginbtn.loading .loader {
  display: block;
}
