
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
  }

  body {
    min-height: 100vh;
    background: url('https://miro.medium.com/v2/resize:fit:1400/1*5pyrdtIlYVp3ZvwR8C1Yrw.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    position: relative;
    overflow-x: hidden;
  }

  /* Dark overlay */
  body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: -2;
  }

  /* Floating particles */
  .particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
  }

  .particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite linear;
  }

  @keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-1000px) rotate(720deg); }
  }

  /* Loader */
  #loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
  }

  .loader {
    width: 48px;
    height: 48px;
    border: 5px solid #00ff88;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
  }

  @keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Header */
  header {
    text-align: center;
    padding: 2rem 1rem 1rem;
    position: relative;
  }

  header h1 {
    font-size: 3rem;
    background: linear-gradient(to right, #00ff88, #00b4db);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(0, 255, 136, 0.3);
    animation: fadeIn 1s ease-in-out;
  }

  /* Login box */
  .login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 90%;
    max-width: 400px;
    margin: 3rem auto;
    animation: slideIn 0.5s ease-in-out;
    z-index: 1;
    position: relative;
  }

  .login-container h2 {
    margin-bottom: 1.5rem;
    color: #00ff88;
    text-align: center;
  }

  input[type="email"],
  input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border-radius: 6px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease;
  }

  input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  input:focus {
    background: rgba(255, 255, 255, 0.25);
    outline: none;
  }

  button {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 255, 136, 0.8);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  button:hover {
    background: rgba(0, 204, 102, 0.85);
    transform: scale(1.05);
  }

  .error {
    color: #ff4d4d;
    margin-top: 1rem;
    animation: fadeIn 0.5s ease-in-out;
    text-align: center;
  }

  /* Animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* Responsive */
/* Mobile Responsiveness */
@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }

  .login-container {
    width: 95%;
    margin: 1.5rem auto;
    padding: 1.2rem;
  }

  input[type="email"],
  input[type="password"] {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .error {
    font-size: 0.85rem;
    margin-top: 0.8rem;
  }
}
