
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  position: relative;
  overflow: hidden;
}

@keyframes float {
  0%   { transform: translateY(0) rotate(0); }
  50%  { transform: translateY(-12px) rotate(6deg); }
  100% { transform: translateY(0) rotate(0); }
}

.bg-logos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.bg-logos img {
  position: absolute;
  width: clamp(48px, 10vw, 120px);
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.18));
}

.bg-logos img.logo-1 { top: 8%; left: 6%; animation-delay: 0s; }
.bg-logos img.logo-2 { bottom: 10%; left: 24%; animation-delay: 2s; }
.bg-logos img.logo-3 { top: 33%; right: 8%; animation-delay: 4s; }

.login-box {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 380px;
  padding: 16px;
}

.card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
  color: #fff;
}

.card h2 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
}

.error {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 14px;
  background: rgba(255,255,255,0.9);
  color: #333;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #4f46e5, #9333ea);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

button:hover {
  opacity: 0.9;
}

@media (max-width: 640px) {
  .bg-logos img {
    width: clamp(36px, 18vw, 80px);
    opacity: 0.15;
    filter: none;
  }

  .bg-logos img.logo-2 {
    display: none;
  }

  .card {
    padding: 24px 20px;
    border-radius: 12px;
  }

}
