@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Irish+Grover&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap");
body {
  width: 100%;
  height: 100vh;
  padding: 0;
  border: 0;
  margin: 0;
  position: relative;
  font-family: inter;
}
* {
  padding: 0;
  margin: 0;
  border: 0;
}
/* Full-screen loading overlay */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e0eae8;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.5s ease-out;
}

/* Loader Animation */
.spin {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(29, 15, 228, 0.3);
  border-top: 5px solid #4361EE;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
main {
  width: 100%;
  background-color: #e0eae8;
  height: 100%;
}
.main-div{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}
.login-cointainer {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 450px;
  height: fit-content;
  padding: 30px;
  gap: 36px;
  opacity: 0px;
  margin: auto;
  opacity: 0;
  transform: scale(0.1);
  animation: zoomIn 4s ease-out forwards;
}
@keyframes zoomIn {
  0% {
      opacity: 0;
      transform: scale(0.1);
  }
  100% {
      opacity: 1;
      transform: scale(1);
  }
}
.backArrow {
  position: absolute;
  top: 40px;
  left: 40px;
}
.backArrow img {
  width: 40px;
}
.title {
  gap: 0px;
  opacity: 0px;
  margin: auto;
  text-align: center;
  padding-bottom: 10px;
}
.title h1 {
  font-family: "Inter", sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 28.41px;
  text-align: center;
  padding-bottom: 16px;
}
.title p {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  padding-bottom: 10px;
}
form {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  box-sizing: border-box;
}
.login-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.login-details label {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  text-underline-position: from-font;
  text-decoration-skip-ink: none;
}
.login-details input {
  width: 100%;
  height: 40px;
  padding: 10px;
  border: 1px solid #000000;
  display: flex;
  box-sizing: border-box;
  outline: none;
}
.checkbox-container label {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
  color: black;
}
.forgot-pasword {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 2px;
}
.forgot-pasword a {
  text-decoration: none;
  font-family: Inter;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
}
.submit-btn {
  padding-top: 36px;
  width: 100%;
  height: fit-content;
  gap: 12px;
  opacity: 0px;
  margin: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.signup {
  display: flex;
  flex-direction: row;
  padding-top: 12px;
}
.signup p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  color: #000000;
}
.signup a {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  color: #000000;
  padding: 0 10px;
}
#login-btn {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  padding: 6px;
  gap: 6px;
  border-radius: 2px;
  opacity: 0px;
  background: #4361EE;
  color: #ffff;
  font-family: Inter;
  font-size: 20px;
  font-weight: 400;
  line-height: 24.2px;
  text-align: center;
  cursor: pointer;
  text-wrap: nowrap;
  justify-content: center;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
}

.hidden {
  display: none;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* Toast */
.toast {
   font-family: "Inter", sans-serif;;
  position: relative;
  padding: 12px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
  color: white;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Show toast */
.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Toast icon */
.toast-icon {
  margin-right: 10px;
  font-size: 16px;
}

/* Success toast */
.toast-success {
  background-color: #28a745; /* Green */
}

/* Error toast */
.toast-error {
  background-color: #dc3545; /* Red */
}

/* Progress bar */
.toast-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(0, 128, 0, 0.7);
  transition: width 5s linear; /* 5 seconds animation */
}

@media screen and (max-width: 720px) {
  main{
    padding: 0px 4px;
    box-sizing: border-box;
  }
  .login-cointainer{
    padding: 20px 10px;
  }
  form{
    padding: 0;
  }
  .title h1{
    font-size: 20px;
  }
  .title p{
    font-size: 18px;
  }
  label {
    font-size: 14px;
  }
  input{
    font-size: 14px;
  }
  .login-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .submit-btn{
    padding: 15px 10px;
    box-sizing: border-box;
  }
}
