html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  background: #fff;
}

body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: url("../../images/bg-login.jpg") no-repeat center center;
  background-size: cover;
  z-index: -1;
}

.ipg-text {
  color: #f97316; /* Red color for IPG */
}

.alert-danger {
  color: #fff; /* White text */
  background-color: #dc3545; /* Red background */
  border: 1px solid #b52a37; /* Darker red border */
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px; /* Adds spacing from the button */
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Align all child elements to the left */
  padding-left: 20px;
  position: absolute;
  top: 5%;
  left: 50px;
}

.logo-wrapper {
  display: flex;
  justify-content: flex-end; /* Align to the left */
  width: 100%;
  margin-bottom: 20px; /* Space between logo and form */
  margin-right: 110px;
}

.logo-wrapper img {
  width: 180px;
}

.form-wrapper {
  position: relative; /* Change from absolute to relative */
  width: 400px;
  padding: 45px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  background: #59c1e6;
  border-radius: 5px;
  text-align: center;
}

.form-wrapper h2 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 22px;
}
.form-wrapper h5 {
  color: #ffffff;
  font-weight: 600;
}

.form-wrapper form {
  margin: 25px 0 65px;
}

.form-control {
  display: flex;
  align-items: center;
  width: 300px;
  height: 50px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 16px;
  padding: 0;
}
.form-wrapper .form-control {
  border-radius: 10px;
}

.icon-box {
  background: #72bb53;
  width: 45px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-box i {
  color: white;
  font-size: 16px;
}

.form-control input {
  border: none;
  outline: none;
  flex: 1;
  height: 100%;
  padding: 0 10px;
  font-size: 16px;
  color: #777;
}

.form-control input::placeholder {
  color: #aaa;
}

form button {
  width: 100%; /* Same width as input */
  height: 50px; /* Same height as input */
  margin-top: 50px; /* Increases space between toggle switch and button */
  padding: 4px 8px;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.1);
  background: #e35da6;
  color: #ffffff;
  border-radius: 7px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

form button:hover {
  background: #f2ae49;
}

.form-wrapper a {
  text-decoration: none;
}

.form-wrapper a:hover {
  text-decoration: underline;
}

.form-wrapper :where(label, p, small, a) {
  font-size: 8;
  color: #fff;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #5a7682; /* Default off color */
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Toggle ON */
input:checked + .slider {
  background-color: #34aec1;
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Align switch with text */
.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.remember-me p,
.remember-me span {
  color: #f5f5f5;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 10px;
}

@media (max-width: 740px) {
  body::before {
    display: none;
  }

  .form-wrapper {
    width: 90%;
    left: 5%;
    top: 50%;
    padding: 30px;
  }

  .form-wrapper form {
    margin: 25px 0 40px;
  }

  .form-control {
    width: unset;
  }
  .container {
    left: unset;
  }
}

.otp-box {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: transparent;
  border: 0;
}

.otp-input,
input[type="text"] {
  width: 35px;
  height: 43px;
  padding: 4px 8px 4px 8px;
  background: #72bb53;
  color: #f7fbfe;
  border-color: #34aec1;
  border-width: 1px;
  border-style: solid;
  border-radius: 6px;
  font-family: "Montserrat";
  font-weight: bold;
  font-size: 30px;
  text-align: center;
}

.otp-input:focus,
input[type="text"]:focus {
  border-color: #e35da6;
  box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
}
