 
 
 /* Loader covers entire screen */
#loader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

/* Simple spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
 
 
 
 
 
 
 body {
      background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                  url('../edu_bg.jpg') center/cover no-repeat fixed;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
        overflow: hidden;

    }

    .login-container {
      max-width: 450px;
      width: 100%;
      margin: 2rem;
      background: rgba(255, 255, 255, 0.98);
      padding: 2.5rem;
      border-radius: 20px;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(10px);
      animation: slideIn .5s ease-out;
    }

    @keyframes slideIn {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo-container {
      text-align: center;
      margin-bottom: 2rem;
    
    }

    .logo-container img {
      width: 80px;
      height: 80px;
      margin-bottom: 1rem;
      animation: pulse 2s infinite;
      display: block;
      margin-left: auto;
      margin-right: auto;   
    
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    .login-container h1 {
      font-size: 1.75rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      text-align: center;
      color: #000;
    }

    .login-subtitle {
      text-align: center;
      color: #666;
      margin-bottom: 2rem;
      font-size: 0.95rem;
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-label {
      font-weight: 600;
      color: #333;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .form-control {
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      padding: 0.75rem 1rem;
      font-size: 1rem;
      transition: all 0.3s ease;
    }

    .form-control:focus {
      border-color: #ffd700;
      box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
      outline: none;
    }

    .password-toggle {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      color: #666;
      transition: color 0.3s ease;
    }

    .password-toggle:hover {
      color: #ffd700;
    }

    .btn-login {
      width: 100%;
      background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
      color: #000;
      border: none;
      border-radius: 50px;
      padding: 0.875rem;
      font-weight: 700;
      font-size: 1.1rem;
      transition: all 0.3s ease;
      margin-top: 1rem;
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    }

    .btn-login:hover {
      background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
      color: #000;
    }

    .extra-buttons {
      display: flex;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .btn-outline-custom {
      flex: 1;
      border: 2px solid #e0e0e0;
      background: white;
      color: #333;
      border-radius: 50px;
      padding: 0.75rem;
      font-weight: 600;
      transition: all 0.3s ease;
    }

    .btn-outline-custom:hover {
      border-color: #ffd700;
      background: #ffd700;
      color: #000;
      transform: translateY(-2px);
    }

    .alert {
      border-radius: 12px;
      border: none;
      padding: 1rem 1.25rem;
      margin-bottom: 1.5rem;
      animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .alert-danger {
      background: linear-gradient(135deg, #dc3545 0%, #ff6b7a 100%);
      color: white;
    }

    .alert-success {
      background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
      color: white;
    }

    .alert-info {
      background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
      color: white;
    }

    .alert .btn-close {
      filter: brightness(0) invert(1);
    }

    .forgot-link {
      float: right;
      font-size: 0.9rem;
      color: #ffd700;
      text-decoration: none;
      font-weight: 600;
    }

    .forgot-link:hover {
      color: #ffb700;
      text-decoration: underline;
    }

    @media (max-width: 576px) {
      .login-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
      }

      .login-container h1 {
        font-size: 1.5rem;
      }

      .extra-buttons {
        flex-direction: column;
      }
    }