/* Reset and base styles */
* {
  box-sizing: border-box;
}
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #50004b;
  font-family: Arial, sans-serif;
}

/* Full-screen overlay that centers the login box */
.overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 20px; /* prevents touching screen edges */
}

/* Login popup styling */
.login-popup {
  background: #ffffff;
  padding: 40px 0px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
}

/* Logo */
.logo img {
  width: 150px;
  margin-bottom: 20px;
}

/* Headings */
h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* Input styling */
.input-group {
  display: flex;
  width: 80%;
  align-items: center;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  margin-left: 42px;
}

.input-group i {
  margin-right: 10px;
  color: #888;
  font-size: 16px;
}

.input-group input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%; /* Reduced width */
  font-size: 15px;
  padding: 5px;
}

/* Checkbox */
.remember-me {
  display: flex;
  align-items: center;
  justify-content: start;
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
   margin-left: 42px;
}

.remember-me input {
  margin-right: 8px;
}

/* Button */
.login-btn {
  width: 80%;
  padding: 12px;
  font-size: 16px;
  background: #50004b;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.3s ease-in-out;
   margin-left: 42px;
}
.login-btn:hover {
  background: #d5980a;
}
.login-btn i {
  font-size: 18px;
}

/* Forgot password */
.forgot-password {
  margin-top: 10px;
}
.forgot-password a {
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}
.forgot-password a:hover {
  text-decoration: underline;
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
  .login-popup {
    padding: 30px 15px;
  }

  .input-group input {
    font-size: 14px;
  }

  .login-btn {
    font-size: 14px;
    padding: 10px;
  }

  h2 {
    font-size: 20px;
  }
}
