body {
  overflow: hidden;
  background: linear-gradient(135deg, #0e1621 0%, #080c12 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Particles Background */
.particles {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(44, 165, 224, 0.3);
  border-radius: 50%;
  animation: float linear infinite;
}
@keyframes float {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { transform: translateY(-100vh) scale(1.5); opacity: 0; }
}

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: rgba(23, 33, 43, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  z-index: -1;
  background: linear-gradient(45deg, transparent, rgba(44, 165, 224, 0.2), transparent);
  border-radius: 22px;
  animation: border-flow 4s ease-in-out infinite;
  background-size: 200% 200%;
}
@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}
.logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(44, 165, 224, 0.3));
}

.title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 30px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}
.input-group .input {
  background: rgba(14, 22, 33, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px;
  padding-right: 50px;
  font-size: 16px;
  border-radius: 12px;
}
.input-group .input:focus {
  background: var(--bg-color);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(44, 165, 224, 0.2);
}
.toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0;
}
.toggle-password:hover { opacity: 1; }

.btn-login {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.btn-login .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn-login.loading span { display: none; }
.btn-login.loading .spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Shake animation for error */
.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
