/* Base & Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  html, body {
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Alerts */
  .alert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    width: 90%;
    max-width: 500px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
  }
  .alert.error {
    background: #422222;
    color: #fca5a5;
  }
  .alert.info {
    background: #1f3f1f;
    color: #86efac;
  }
  
  /* Card */
  .login-card {
    background: #111827cc; /* semi-opaque for slight see-through */
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 424px;
    text-align: center;
    animation: fadeIn 0.6s ease-out both;
  }
  
  /* Logo */
  .login-card .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  .login-card .logo i {
    font-size: 32px;
    color: #3B82F6;       /* primary blue */
  }
  .login-card .logo h1 {
    font-size: 24px;
    font-weight: 500;
    color: #3B82F6;       /* primary blue */
  }
  
  /* Form */
  .login-card h2 {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 400;
    color: #d1d5db;
  }
  .input-group {
    margin-bottom: 18px;
    text-align: left;
  }
  .input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #9ca3af;
  }
  .input-group label i {
    margin-right: 6px;
  }
  .input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #374151;
    border-radius: 6px;
    background: #1f2937;
    color: #e5e7eb;
    transition: border-color 0.3s, background 0.3s;
    min-width: 320px;
  }
  .input-group input:focus {
    outline: none;
    border-color: #3B82F6; /* focus blue */
    background: #111827;
  }
  
  /* Button */
  .btn-login {
    display: block;
    width: 100%;
    padding: 12px;
    margin: 12px 0 8px;
    background: #3B82F6;    /* button blue */
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.4); /* shadow in blue */
  }
  
  /* Register Link */
  .login-card .register {
    font-size: 13px;
    color: #6b7280;
  }
  .login-card .register a {
    color: #3B82F6;         /* link blue */
    text-decoration: none;
    transition: color 0.2s;
  }
  .login-card .register a:hover {
    color: #93C5FD;         /* lighter blue on hover */
  }
  
  /* Fade-in Animation */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  /* Responsive */
  @media(max-width: 400px) {
    .login-card {
      margin: 20px;
      padding: 30px 20px;
    }
  }

  .password-wrapper {
    position: relative;
  }
  
  .password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.1em;
    color: #9ca3af;
    transition: color 0.2s;
  }
  
  .password-wrapper .toggle-password:hover {
    color: #e5e7eb;
  }
  