@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  /* Prevent scroll on login page */
}

/* Modern Animated Gradient Background */
.login-page-modern {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f3d0f, #2e8b57, #006400, #1e4d2b);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  position: relative;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Floating Shapes for dynamism */
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 20s infinite linear;
  z-index: 1;
}

.shape:nth-child(1) {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-duration: 25s;
}

.shape:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: 10%;
  right: 5%;
  background: rgba(255, 255, 255, 0.05);
  animation-duration: 30s;
  animation-direction: reverse;
}

.shape:nth-child(3) {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 50%;
  background: rgba(255, 255, 255, 0.08);
  animation-duration: 40s;
}


@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  100% {
    transform: translate(20px, 40px) rotate(360deg);
  }
}

/* Glassmorphism Card */
.glass-card {
  background: rgba(255, 255, 255, 0.95);
  /* High opacity for clear visibility */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  /* Stronger shadow */
  z-index: 10;
  transition: transform 0.3s ease;
  animation: fadeInUp 0.8s ease-out;
}

.glass-card:hover {
  transform: translateY(-5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header img {
  width: 80px;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.login-header h3 {
  color: #006400;
  /* Dark Green for contrast */
  font-weight: 700;
  margin: 0;
  text-shadow: none;
  /* Removed text shadow for cleaner look */
}

.login-header p {
  color: #555;
  /* Dark grey text */
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Modern Inputs */
/* Modern Inputs */
/* Modern Inputs */
/* Modern Inputs */
/* Modern Inputs */
.input-modern-group {
  position: relative;
  margin-bottom: 35px;
  /* Margin for top user/lock icons */
}

.input-modern {
  width: 100%;
  padding: 12px 50px 12px 15px;
  /* Left: 15px standard, Right: 50px for toggle */
  background: #ffffff;
  border: 2px solid #e1e1e1;
  border-radius: 10px;
  color: #333333;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
  height: 50px;
  /* Fixed height */
  box-sizing: border-box;
}

.input-modern::placeholder {
  color: #999;
}

.input-modern:focus {
  background: #ffffff;
  border-color: #2e8b57;
  box-shadow: 0 0 0 4px rgba(46, 139, 87, 0.15);
}

/* User & Lock Icons (Outside/Above) */
.input-icon {
  position: absolute;
  left: 0;
  top: -30px;
  /* Move above input */
  bottom: auto;
  width: auto;
  height: 30px;
  display: flex;
  align-items: center;
  color: #2e8b57;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  z-index: 5;
  pointer-events: none;
  padding-left: 5px;
  font-weight: 600;
}

.input-icon::after {
  content: attr(data-label);
  margin-left: 5px;
  font-size: 0.9rem;
  color: #555;
}

.input-modern:focus+.input-icon {
  color: #006400;
}

/* Visibility Toggle (Inside Right) */
.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  /* Inside input */
  bottom: 0;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 20;
  padding: 0;
}

.toggle-password:hover {
  color: #2e8b57;
}

/* Reset Label Display */
.input-modern-group label {
  display: none;
}

/* Checkbox Style */
.checkbox-modern {
  display: flex;
  align-items: center;
  color: #333;
  font-size: 0.9rem;
  margin-bottom: 20px;
  cursor: pointer;
}

.checkbox-modern input {
  margin-right: 10px;
  accent-color: #2e8b57;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Modern Button */
.btn-modern {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #32cd32, #228b22);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
  transition: all 0.3s ease;
}

.btn-modern:hover {
  background: linear-gradient(90deg, #228b22, #006400);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-modern:active {
  transform: translateY(1px);
}

.btn-modern:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Info Box / Messages */
.alert-modern {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: center;
  border-left: 5px solid;
  animation: shake 0.5s ease-in-out;
}

.alert-error {
  border-color: #dc3545;
  color: #721c24;
  background-color: #f8d7da;
}

.alert-success {
  border-color: #28a745;
  color: #155724;
  background-color: #d4edda;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .glass-card {
    padding: 25px;
    width: 90%;
  }

  .login-header img {
    width: 60px;
  }

  .login-header h3 {
    font-size: 1.5rem;
  }
}