* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #ffffff; /* Clean white background */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Center wrapper */
.container,
.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Login Card */
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 40px;
  background: #ffffff;
  border-radius: 22px;
  text-align: center;
  color: #222;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 1px solid #f2f2f2;
  animation: fadeIn 0.7s ease;
}

/* Title */
.login-card h2 {
  font-size: 2rem;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Subtitle */
.subtitle {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #444;
}

/* Floating Input Fields */
.input-group {
  position: relative;
  margin-bottom: 28px;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: 1.5px solid #ddd;
  outline: none;
  background: #fafafa;
  color: #333;
  font-size: 1rem;
  transition: 0.2s;
}

.input-group input:focus {
  border-color: #6366f1;
  background: #fff;
}

.input-group label {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  transition: 0.3s;
  pointer-events: none;
  background: #fff;
  padding: 0 5px;
}

/* Floating animation */
.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 0.8rem;
  color: #6366f1;
}

/* Password toggle eye */
#toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #777;
}

#toggle:hover {
  color: #333;
}

/* Login button */
.login-btn {
  width: 100%;
  padding: 15px;
  background: #6366f1;
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: 0.25s;
}

.login-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* Forgot password */
.forgot {
  margin-top: 18px;
  font-size: 0.9rem;
}

.forgot a {
  color: #444;
  text-decoration: underline;
}

/* Fade animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  .login-card {
    max-width: 380px;
    padding: 32px;
  }
}

@media (max-width: 480px) {
  .login-card {
    max-width: 330px;
    padding: 25px;
  }

  .login-card h2 {
    font-size: 1.6rem;
  }
}
.login-logo {
  width: 300px;           /* Controls size */
  max-width: 60%;         /* Prevents oversized images */
  height: auto;           /* Auto height keeps proportions */
  display: block;
  margin: 0 auto 20px;    /* Centers the logo */
  object-fit: contain;    /* Prevents stretching */
}

/* Error box */
#error {
  background-color: rgba(255,200,200,0.95);
  width: 40vw;
  display: none;
  opacity: 0;
  top: -200px;
  left: 30vw;
  position: fixed;
  z-index: 4;
  border-radius: 5px;
  box-shadow: 0px 0px 4px 1px lightgray;
  box-sizing: border-box;
  padding: 20px;
  font-style: italic;
  font-size: 16px;
}

@media (max-width:800px) {
  #error {
    width: 90vw;
    left: 5vw;
  }
}

.image-class {
  width: 98%;
}
