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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* NAYA ADD KIYA: Taaki form aur bahar wale logos upar-neeche aayein */
  align-items: center;
  justify-content: center;
  background: url("../images/background.png") center/cover no-repeat fixed;
  padding: 20px;
}

.login-container {
  width: 100%;          /* Mobile me form ko screen ke hisab se set karne ke liye 100% kiya */
  max-width: 380px;     /* Badi screens par maximum 380px tak hi bada hoga */
  background: #fff;
  padding: 25px 30px 20px 30px; 
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  animation: fadeIn 0.9s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* TOP LOGO STYLING - Centered Single Logo */
.top-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -10px 0 15px 0;
}

.top-logo img {
  display: block;
  max-width: 190px; /* Ab ek hi logo hai, isliye purani original size wapas kar di */
  height: auto;
  border-radius: 8px;
}

/* BOTTOM LOGO STYLING - Whitespace fix & Resize */
.bottom-logo img {
  display: block;
  max-width: 180px; 
  margin: 12px auto -5px auto; 
  border-radius: 8px;
}

h2 {
  margin: 5px 0 15px 0; 
  color: #009639;
  font-weight: 600;
}

.alert {
    padding: 10px;
    background-color: #f44336;
    color: white;
    border-radius: 4px;
    text-align: left;
    font-size: 14px;
}

.input-group {
  position: relative;
  margin-bottom: 20px; 
}

.left-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #009639;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 14px 44px 14px 42px; 
  border: 2px solid #A5D6B6;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  z-index: 0;
  background: #F0F9F3;
  color: #333;
}

.input-group input::placeholder {
  color: #7ab893; 
}

.input-group input:focus {
  border-color: #009639;
  box-shadow: 0 0 10px rgba(0, 150, 57, 0.15);
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #009639; 
  z-index: 2;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.toggle-password:hover {
  color: #007A2E; 
  background: rgba(0, 150, 57, 0.1);
}

.login-btn {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #009639, #007A2E);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 122, 46, 0.18);
  background: linear-gradient(135deg, #007A2E, #009639);
}

.login-btn:active {
  transform: none;
  box-shadow: none;
}

.outside-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 380px;
  margin-bottom: 20px;
}

.outside-logos img {
  max-width: 220px;
  height: auto;
}

/* Overlap effect */
.outside-logos img + img {
  margin-left: -45px; /* jitna overlap chahiye utna increase karo */
}

.outside-logos img:first-child {
  margin-left: -30px; /* jitna left le jana ho utna adjust karo */
}

/* --- Responsive Layout Fixes (Issue Yaha Tha) --- */
@media (max-width: 768px) {
  .login-container {
    position: relative;
    z-index: 2;
    padding: 25px 20px 20px 20px; /* Mobile par thoda padding adjust kiya */
  }

  body {
    position: relative;
    z-index: 1;
  }
}

/* --- jQuery Validation Error Styling --- */
label.error {
  color: #e53935;
  font-size: 12px;
  display: block;
  text-align: left;
  margin-top: -15px; 
  margin-bottom: 15px;
  margin-left: 5px;
  font-weight: 500;
}

.input-group input.error {
  border-color: #e53935; 
  box-shadow: 0 0 5px rgba(229, 57, 53, 0.2);
}