/* Modal Background */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease-in-out;
  }
  
  /* Modal Content */
  .modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 40px 30px;
    border-radius: 12px;
    width: 380px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.5s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  .modal-content h2 {
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-weight: 600;
  }
  
  /* Close Button */
  .close {
    color: #aaa;
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .close:hover {
    color: #ff0000;
  }
  
  /* Input Styles */
  .input-group {
    margin-bottom: 15px;
  }
  
  .modal-content input[type="text"],
  .modal-content input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  }
  
  .modal-content input[type="text"]:focus,
  .modal-content input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
    outline: none;
  }
  
  /* Button */
  .modal-content button {
    width: 100%;
    padding: 12px 0;
    background-color: #007bff;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s;
  }
  
  .modal-content button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  
  /* Message */
  #loginMessage {
    margin-top: 12px;
    font-size: 14px;
    color: red;
  }
  
  /* Slide Down Animation */
  @keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  /* Responsive */
  @media (max-width: 480px) {
    .modal-content { padding: 30px 20px; width: 90%; }
    .modal-content h2 { font-size: 20px; }
  }