* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: url("../Management/image/background.jpg") center / cover fixed no-repeat;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.container {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  padding: 40px 30px;
  text-align: center;
  border-radius: 20px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease;
}

.container.fade-in {
  transform: translateY(0);
  opacity: 1;
}

.logo {
  width: 100px;
  height: auto;
  display: block;
  margin: 0 auto 15px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.head {
  margin-bottom: 30px;
}

.head h1 {
  font-size: 28px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.head p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  margin-bottom: 10px;
}

.inputbox {
  margin: 20px 0;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.input-icon:focus-within {
  border-color: #4169e1; /* Changed from #ffcc00 to royal blue */
  box-shadow: 0 0 0 2px rgba(65, 105, 225, 0.3); /* Changed from yellow to blue */
  background: rgba(255, 255, 255, 0.25);
}

.input-icon i {
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.input-icon input {
  width: 100%;
  padding: 15px 0;
  border: none;
  outline: none;
  background: transparent;
  color: #ffffff;
  font-size: 15px;
}

.input-icon input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0;
}

.remember-me {
  display: flex;
  align-items: center;
  color: white;
}

.remember-me input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked {
  background: #4169e1; /* Changed from #ffcc00 to royal blue */
  border-color: #4169e1; /* Changed from #ffcc00 to royal blue */
}

.remember-me input[type="checkbox"]:checked::before {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; /* Changed from #000 to white for better contrast */
  font-size: 12px;
}

.remember-me label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
}

.forgot {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: 0.3s;
}

.forgot:hover {
  color: #4169e1; /* Changed from #ffcc00 to royal blue */
  text-decoration: underline;
}

.button-container {
  margin: 25px 0;
}

.login-button {
  background: #4169e1; /* Changed from #ffcc00 to royal blue */
  color: #fff; /* Changed from #000 to white for better contrast */
  width: 100%;
  border-radius: 12px;
  font-size: 16px;
  padding: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.login-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

.login-button:hover {
  background: #3a5fcd; /* Changed from #e6b800 to darker blue */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(65, 105, 225, 0.4); /* Changed from yellow to blue */
}

.login-button:hover::before {
  left: 100%;
}

.login-button:active {
  transform: translateY(0);
}

.footer-text {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

.error-message,
.success-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: slideIn 0.3s ease-out;
  backdrop-filter: blur(10px);
  border: 1px solid;
}

.error-message {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
  color: #ffffff;
}

.error-message i {
  color: #ef4444;
  font-size: 18px;
  flex-shrink: 0;
}

.success-message {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.5);
  color: #ffffff;
}

.success-message i {
  color: #22c55e;
  font-size: 18px;
  flex-shrink: 0;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .container {
    width: 85%;
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 90%;
    padding: 25px 20px;
    border-radius: 15px;
  }

  .head h1 {
    font-size: 24px;
  }

  .head p {
    font-size: 14px;
  }

  .input-icon input {
    padding: 12px 0;
  }

  .options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .login-button {
    padding: 12px;
  }
}
