/* Base Styles */
body {
  font-family: Righteous, "Fira Sans Condensed", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.login-div {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  gap: 20px;
}

.login-image {
  max-width: 100%;
  height: auto;
  width: 500px;
  border-radius: 20px;
}

.log-p-div {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.log-title-p {
  font-size: 2.5rem;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
  background: linear-gradient(to right, #05f42d, blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* For Firefox */
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInScale 2s ease-in-out forwards;
}

@keyframes slideIn {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.log-input-top-p {
  font-size: 1.8rem;
  text-align: center;
  margin-top: 20px;
  font-weight: 600;
  color: blue;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid;
  animation: slideIn 4s steps(30, end) infinite;
}

@keyframes fadeInScale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.log-pass-div {
  box-shadow: 0.7px 0.7px 10px rgba(195, 187, 187, 0.5);
  border-radius: 3vw;
  padding: 20px;
  width: 100%;
  max-width: 500px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.roll-no-input,
.password-input {
  height: 50px;
  margin: 10px 0;
  font-size: 18px;
  border-radius: 25px;
  border: 1.5px solid #05f42d;
  padding-left: 20px;
  box-shadow: 0.5px 0.5px 3px rgba(195, 187, 187, 0.5);
  color: blue;
  width: 100%;
}

.roll-no-input::placeholder,
.password-input::placeholder {
  color: rgba(0, 0, 255, 0.6);
  font-family: Righteous, "Fira Sans Condensed", Arial, sans-serif;
}

.password-hint {
  font-size: 1rem;
  text-align: center;
  margin: 10px 0;
  color: #1eae3e;
  font-weight: 600;
  padding: 0 10px;
}

.login-button {
  padding: 1vw 1.5vw 1vw 1.5vw;
  font-size: 1.5vw;
  border-radius: 20px;
  border: none;
  background-color: blue;
  color: white;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
  max-width: 300px;
  margin-top: 20px;
  font-family: Righteous, "Fira Sans Condensed", Arial, sans-serif;
}

.login-button:hover {
  background-color: white;
  color: blue;
  border: 2px solid #05f42d;
  cursor: pointer;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .login-div {
    flex-direction: column;
  }

  .login-image {
    width: 100%;
    max-width: 400px;
  }

  .log-pass-div {
    width: 90%;
    max-width: 400px;
  }

  .log-title-p {
    font-size: 2rem;
  }

  .log-input-top-p {
    font-size: 1.5rem;
  }
}

@media (min-width: 480px) and (max-width: 700px) {
  .login-div {
    padding: 10px;
  }

  .log-title-p {
    font-size: 1.8rem;
  }

  .log-input-top-p {
    font-size: 1.2rem;
  }

  .login-button {
    width: 100%;
    font-size: 3vw;
    padding: 15px;
    max-width: none; /* allow full width */
  }
}
