@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 {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-family: inter;
}
* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
}
.login-div {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-repeat: no-repeat;
  background: linear-gradient(180deg,#4361EE, #7FC8A9);

}
.login-box {
  width: 400px;
  height: fit-content;
  border-radius: 24px;
  opacity: 0;
  transform: scale(0.9); /* Start slightly smaller */
  background: linear-gradient(180deg, #afddfc 0%, #f2f9fb 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 20px;
  animation: fadeInScale 1.2s ease-in forwards; /* Add animation */
}

/* Define the animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9); /* Slightly smaller */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* Normal size */
  }
}

.password-container {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

#eye-icon {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  cursor: pointer;
}
.password-container input {
  width: 100%;
}
.password-requirements {
  font-size: 12px;
  color: #666;
}
.input-div {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}
input {
  width: 100%;
  padding: 10px;
  border: 1px solid #00000080;
  background-color: transparent;
  box-sizing: border-box;
}
form {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.title {
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.title h1 {
  font-family: Inter;
  font-size: 24px;
  font-weight: 700;
}
.title p {
  font-family: PT Serif;
  font-size: 20px;
  font-weight: 400;
}
label,
input {
  font-family: Inter;
  font-size: 18px;
  font-weight: 400;
  text-align: left;
}
label {
  padding-bottom: 4px;
}
.submit {
  padding-top: 20px;
}
button {
  width: 120px;
  padding: 10px;
  background-color: #010101;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
button.loading {
  cursor: not-allowed;
  background: linear-gradient(180deg, #afddfc 0%, #f2f9fb 100%);
}
button.loading .spinner {
  display: inline-block;
}

.hidden {
  display: none;
}
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media screen  and (max-width: 720px){
  .title h1{
    font-size: 24px;
  }
  .login-div{
    padding: 20px 10px;
    box-sizing: border-box;
  }
  
}
