body {
      min-height: 100vh;
      background: linear-gradient(120deg, #e3eafc 0%, #f5fafd 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      overflow: hidden;
      font-family: 'Inter', Arial, sans-serif;
    }

    body::before {
      content: "";
      position: absolute;
      top: -80px; left: -80px;
      width: 400px; height: 400px;
      background: radial-gradient(circle, #4f8cff33 0%, transparent 70%);
      filter: blur(30px);
      z-index: 0;
    }

 .login-container {
   background: linear-gradient(135deg, #f7fbff 0%, #e3eafc 60%, #d0e2ff 100%);
   padding: 2.5rem 2rem 2rem 2rem;
   border-radius: 22px;
   box-shadow: 0 8px 40px rgba(60, 100, 180, 0.13), 0 2px 8px rgba(0,0,0,0.05);
   width: 370px;
   max-width: 95vw;
   display: flex;
   flex-direction: column;
   align-items: center;
   position: relative;
   z-index: 1;
   animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
 }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

.login-avatar {
  width: 80px;
  height: 80px;
  background: transparent;
  border-radius: 50%;
  margin-bottom: 0.3rem; /* Reduced gap */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  animation: avatarPop 0.8s cubic-bezier(.23,1.01,.32,1) both;
}

    @keyframes avatarPop {
      0% { transform: scale(0.7); opacity: 0; }
      60% { transform: scale(1.1); opacity: 1; }
      100% { transform: scale(1); }
    }

    .login-avatar img {
      width: 80px;
      height: 80px;
      object-fit: contain;
    }

    .login-form {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

.login-form h2 {
  text-align: center;
  margin-bottom: 1.2rem;
  color: #4f8cff;         /* Softer blue for professionalism */
  font-weight: 500;       /* Less bold */
  font-size: 1.15rem;
  letter-spacing: 0.7px;  /* Subtle spacing */
  font-family: 'Inter', Arial, sans-serif;
  text-shadow: 0 1px 4px rgba(79,140,255,0.07); /* Optional: soft shadow */
}

.login-form input {
  width: 100%;
  box-sizing: border-box; /* Prevents overflow */
  padding: 0.85rem 1.1rem;
  margin: 0.7rem 0;
  border: 1.5px solid #e3eafc;
  border-radius: 10px;
  font-size: 1.05rem;
  background: #f7fbff;
  transition: border 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 1px 2px rgba(79,140,255,0.04);
}

    .login-form input:focus {
      border-color: #4f8cff;
      outline: none;
      box-shadow: 0 0 0 2px #e3f0ff;
      background: #f0f7ff;
      animation: inputFocus 0.3s;
    }

    @keyframes inputFocus {
      from { box-shadow: 0 0 0 0 #e3f0ff; }
      to { box-shadow: 0 0 0 2px #e3f0ff; }
    }

    .login-form button {
      width: 100%;
      padding: 0.95rem;
      background: linear-gradient(90deg, #4f8cff 0%, #6ed6ff 100%);
      color: #fff;
      border: none;
      border-radius: 10px;
      font-size: 1.15rem;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
      box-shadow: 0 2px 12px rgba(79,140,255,0.10);
      margin-top: 0.7rem;
      letter-spacing: 0.5px;
    }

    .login-form button:hover, .login-form button:focus {
      background: linear-gradient(90deg, #6ed6ff 0%, #4f8cff 100%);
      box-shadow: 0 4px 18px rgba(79,140,255,0.15);
      transform: translateY(-2px) scale(1.03);
    }

    .forgot {
      text-align: center;
      margin-top: 1.2rem;
    }

    .forgot a {
      color: #4f8cff;
      text-decoration: none;
      font-weight: 500;
      transition: color 0.2s;
    }

    .forgot a:hover {
      text-decoration: underline;
      color: #2d3a4b;
    }

    .form-links {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      margin-top: auto;
      font-size: 0.95rem;
    }

    .form-links p {
      width: 100%;
      text-align: center;
    }

    .form-links a {
      color: #4f8cff;
      text-decoration: none;
      transition: color 0.2s;
      font-weight: 500;
    }

    .form-links a:hover {
      color: #3a75d5;
      text-decoration: underline;
    }

    .form-alert {
      padding: 12px 16px;
      margin-bottom: 1rem;
      border-radius: 8px;
      font-size: 1rem;
      text-align: center;
      font-weight: 500;
      box-shadow: 0 1px 4px rgba(220, 53, 69, 0.07);
      animation: fadeIn 0.5s;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .form-alert.error {
      background-color: #f8d7da;
      color: #a94442;
      border: 1.5px solid #f5c6cb;
    }

    @media (max-width: 900px) {
      .login-container {
        width: 80vw;
        padding: 2rem 1.2rem 1.5rem 1.2rem;
      }
      .login-form h2 {
        font-size: 1.25rem;
      }
      .login-avatar {
        width: 80px;
        height: 80px;
      }
      .login-avatar img {
            width: 80px;
            height: 80px;
            }
    }

    @media (max-width: 768px) {
      .login-container {
        width: 95vw;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
        border-radius: 16px;
      }
      .login-form h2 {
        font-size: 1.1rem;
      }
      .login-avatar {
        width: 60px;
        height: 60px;
      }
      .login-avatar img {
        width:60px;
        height: 60px;
        }
      .login-form input,
      .login-form button {
        font-size: 0.97rem;
        padding: 0.7rem 0.8rem;
      }
      .form-links {
        font-size: 0.9rem;
      }
    }

    @media (max-width: 480px) {
      .login-container {
        width: 98vw;
        padding: 1rem 0.3rem 0.7rem 0.3rem;
        border-radius: 10px;
      }
      .login-form h2 {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
      }
      .login-avatar {
        width: 40px;
        height: 40px;
      }
      .login-avatar img {
        width: 32px;
        height: 32px;
      }
      .login-form input,
      .login-form button {
        font-size: 0.9rem;
        padding: 0.6rem 0.5rem;
      }
      .form-links {
        font-size: 0.85rem;
        gap: 2px;
      }
      .form-alert {
        font-size: 0.9rem;
        padding: 8px 10px;
      }
    }