#login-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6B8DD6 100%);
  overflow: hidden;
}

#login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  animation: loginBgFloat 20s ease-in-out infinite;
}

@keyframes loginBgFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(2%, -2%) rotate(1deg);
  }
  66% {
    transform: translate(-1%, 1%) rotate(-1deg);
  }
}

.login-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1;
}

.login-card {
  width: 400px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 36px 36px;
  animation: loginCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.login-subtitle {
  font-size: 13px;
  color: #8c8c8c;
  margin: 0;
}

.login-error {
  padding: 10px 14px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 8px;
  color: #ff4d4f;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  animation: errorShake 0.4s ease;
}

.login-error::before {
  content: '⚠';
  margin-right: 8px;
  font-size: 14px;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-form .form-label {
  font-size: 13px;
  margin-bottom: 8px;
  color: #595959;
  font-weight: 500;
}

.login-form .form-input {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1.5px solid #e5e7eb;
  transition: all 0.25s;
}

.login-form .form-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.login-form .form-input::placeholder {
  color: #bfbfbf;
}

.login-form .btn-primary {
  margin-top: 8px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  letter-spacing: 4px;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.login-form .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #7688ee 0%, #8357b2 100%);
}

.login-form .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.login-form .btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .login-card {
    width: 100%;
    max-width: 400px;
    padding: 32px 24px 28px;
  }

  .login-title {
    font-size: 20px;
  }
}
